From b94058bb4259a4cc4ed7199980687925e277c265 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 22 Nov 2021 14:58:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/inject.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/typescript/core/inject.ts b/typescript/core/inject.ts index 5754277c0..f91aa1590 100644 --- a/typescript/core/inject.ts +++ b/typescript/core/inject.ts @@ -1,9 +1,9 @@ -type _module = (xtype: string, cls: any) => void | Function; -type _constant = (xtype: string, cls: any) => void | Function; -type _model = (xtype: string, cls: any) => void | Function; -type _store = (xtype: string, cls: any) => void | Function; -type _service = (xtype: string, cls: any) => void | Function; -type _provider = (xtype: string, cls: any) => void | Function; +type _module = (xtype: string, cls: any) => void; +type _constant = (xtype: string, cls: any) => Function; +type _model = (xtype: string, cls: any) => Function; +type _store = (xtype: string, cls: any) => Function; +type _service = (xtype: string, cls: any) => Function; +type _provider = (xtype: string, cls: any) => Function; interface _modules { getModule: (type: string) => any; From 1263a034410db37f5f8cf4b45cc3910f512be0d6 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 22 Nov 2021 15:13:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/inject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/core/inject.ts b/typescript/core/inject.ts index f91aa1590..e199b06f5 100644 --- a/typescript/core/inject.ts +++ b/typescript/core/inject.ts @@ -1,5 +1,5 @@ type _module = (xtype: string, cls: any) => void; -type _constant = (xtype: string, cls: any) => Function; +type _constant = (xtype: string, cls: T) => (() => T); type _model = (xtype: string, cls: any) => Function; type _store = (xtype: string, cls: any) => Function; type _service = (xtype: string, cls: any) => Function;