From 1be305072a3c30d4a002c383c5b2ab756672a341 Mon Sep 17 00:00:00 2001 From: EncodedVenom Date: Sat, 15 Jun 2024 15:10:38 -0400 Subject: [PATCH] Rename PossiblyUndefinedPack -> Nullable --- lib/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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