From 059a49132b90185a325a6b69e222ffaf6cb101d1 Mon Sep 17 00:00:00 2001 From: nonamie <53796817+mathfox@users.noreply.github.com> Date: Sat, 14 Dec 2024 11:53:11 +0300 Subject: [PATCH] remove commented Id/Pair types --- jecs.d.ts | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) 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;