From 9e0d1db8e4f41fc6625dbb078725f7d200c55079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 28 Jan 2019 11:41:53 +0100 Subject: [PATCH] move Type type to globals.d.ts file --- web/static/globals.d.ts | 3 +++ web/static/src/ts/registry.ts | 3 --- web/static/src/ts/services/action_manager.ts | 4 ---- 3 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 web/static/globals.d.ts 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;