Fix ts types

This commit is contained in:
Ukendio 2024-08-03 22:22:36 +02:00
parent 35387c06e0
commit 337f388093

3
src/index.d.ts vendored
View file

@ -3,7 +3,8 @@ type Query<T extends unknown[]> = {
/** /**
* this: Query<T> is necessary to use a colon instead of a period for emits. * this: Query<T> is necessary to use a colon instead of a period for emits.
*/ */
drain: (this: Query<T>) => Query<T>
with: (this: Query<T>, ...components: Entity[]) => Query<T>
/** /**
* Modifies the Query to exclude specified components * Modifies the Query to exclude specified components
* @param components The components to exclude * @param components The components to exclude