# entity

`import { entity } from "destack:simulation/scenario";`

Create an entity selector wrapper.

```ds title="entity"
export function entity(selector: EntitySelector): { kind: "binding"; binding: Selector } | { kind: "entity"; entity: EntitySelector } | { kind: "edge"; edge: EdgeSelector }
```

[language/library/src/simulation/scenario/rule.ds:53:55](https://github.com/destack-sh/destack/blob/main/language/library/src/simulation/scenario/rule.ds#L53-L55)
