diff --git a/jecs.d.ts b/jecs.d.ts index b80cfc9..597840d 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -15,7 +15,7 @@ export type Id = number & { * indicating that the entity is intended to only store other entities. */ export type Tag = Id & { - readonly __nominal_Tag: unique symbol, + readonly __nominal_Tag: unique symbol; }; /** @@ -23,25 +23,9 @@ export type Tag = Id & { * This identifier is associated with `TData` data when this entity is used as a component. */ export type Entity = Tag & { - readonly __nominal_Entity: unique symbol, + readonly __nominal_Entity: unique symbol; }; -/** - * A pair of entities. - * - * `TRelationship` is the type of the predicate, `TTarget` is the type of the object, and `TData` is the type of the value (defaults to `TRelationship`) - */ -//export type Pair = number & { -// readonly __nominal_Pair: unique symbol, -//}; - -/** - * Either an Entity or a Pair. - * - * An id that can be added and removed. - */ -//export type Id = Entity | Pair; - type InferComponent = TValue extends Entity ? TData : never; type FlattenTuple = TItems extends [infer TValue] ? TValue : LuaTuple;