mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Fix ts types
This commit is contained in:
parent
35387c06e0
commit
337f388093
1 changed files with 127 additions and 126 deletions
3
src/index.d.ts
vendored
3
src/index.d.ts
vendored
|
@ -3,7 +3,8 @@ type Query<T extends unknown[]> = {
|
|||
/**
|
||||
* 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
|
||||
* @param components The components to exclude
|
||||
|
|
Loading…
Reference in a new issue