Skip to content

Commit

Permalink
Fixed .view().contains not taking any arguments (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
thefnox authored Jul 4, 2024
1 parent 30d74ad commit 0487d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/World.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ type QueryResult<T extends ComponentBundle> = Query<T> & {

type View<T extends ComponentBundle> = Query<T> & {
get: (this: View<T>, id: AnyEntity) => LuaTuple<T>;
contains: (this: View<T>) => boolean;
contains: (this: View<T>, id: AnyEntity) => boolean;
};

export type FilterOut<T extends Array<unknown>, F> = T extends [infer L, ...infer R]
Expand Down

0 comments on commit 0487d5a

Please sign in to comment.