diff --git a/web/static/globals.d.ts b/web/static/globals.d.ts new file mode 100644 index 00000000..4b658c7f --- /dev/null +++ b/web/static/globals.d.ts @@ -0,0 +1,3 @@ +interface Type extends Function { + new (...args: any[]): T; +} diff --git a/web/static/src/ts/registry.ts b/web/static/src/ts/registry.ts index e2cc42b3..602d5e76 100644 --- a/web/static/src/ts/registry.ts +++ b/web/static/src/ts/registry.ts @@ -4,9 +4,6 @@ import { Env } from "./env"; //------------------------------------------------------------------------------ // Types //------------------------------------------------------------------------------ -interface Type extends Function { - new (...args: any[]): T; -} type ActionWidget = Type>; diff --git a/web/static/src/ts/services/action_manager.ts b/web/static/src/ts/services/action_manager.ts index dbe5d86e..47fd88eb 100644 --- a/web/static/src/ts/services/action_manager.ts +++ b/web/static/src/ts/services/action_manager.ts @@ -10,10 +10,6 @@ import { Query, IRouter } from "./router"; // Types //------------------------------------------------------------------------------ -interface Type extends Function { - new (...args: any[]): T; -} - export interface ClientAction { type: "client"; name: string;