From 95b4a7f222cfd9b014ba85bea5610017afe8b159 Mon Sep 17 00:00:00 2001 From: Martin Emmert Date: Wed, 18 Nov 2020 11:24:34 +0100 Subject: [PATCH] change type of initArgs to unknown[] --- src/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index 276c1d1..ce79bf1 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -30,13 +30,13 @@ export interface IQueryConfig { export declare class System { get sysName(): string; - constructor(world: World, ...initArgs: any[]); + constructor(world: World, ...initArgs: unknown[]); world: World; changes: IComponentChange[]; queries: Query[]; lastTick: number; static subscriptions: string[]; - init(...initArgs: any[]): void; + init(...initArgs: unknown[]): void; update(tick: number): void; createQuery(init?: IQueryConfig): Query; subscribe(type: string | ComponentClass): void;