diff --git a/lib/index.d.ts b/lib/index.d.ts index 18d27c1..13bf01f 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -47,7 +47,7 @@ export type EntityType = T extends Entity ? A : never; export type InferComponents = { [K in keyof A]: EntityType }; -type PossiblyUndefinedPack = { +type Nullable = { [K in keyof T]: T[K] | undefined } @@ -125,7 +125,7 @@ export class World { * @param component2 Target Component 2 * @returns Data associated with the components if it exists */ - get(id: number, component: Entity, component2: Entity): LuaTuple>; + get(id: number, component: Entity, component2: Entity): LuaTuple>; /** * Retrieves the value of three components. This value may be undefined. @@ -135,7 +135,7 @@ export class World { * @param component3 Target Component 3 * @returns Data associated with the components if it exists */ - get(id: number, component: Entity, component2: Entity, component3: Entity): LuaTuple>; + get(id: number, component: Entity, component2: Entity, component3: Entity): LuaTuple>; /** * Retrieves the value of four components. This value may be undefined. @@ -146,7 +146,7 @@ export class World { * @param component4 Target Component 4 * @returns Data associated with the components if it exists */ - get(id: number, component: Entity, component2: Entity, component3: Entity, component4: Entity): LuaTuple>; + get(id: number, component: Entity, component2: Entity, component3: Entity, component4: Entity): LuaTuple>; /** * Searches the world for entities that match a given query