From 725254aa1d3763ffdda618aaecf15ff8e8a57aef Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 19 Nov 2021 16:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20ts?= 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 3852fe442..5754277c0 100644 --- a/typescript/core/inject.ts +++ b/typescript/core/inject.ts @@ -1,9 +1,9 @@ -type _module = (xtype: string, cls: any) => void; -type _constant = (xtype: string, cls: any) => void; -type _model = (xtype: string, cls: any) => void; -type _store = (xtype: string, cls: any) => void; -type _service = (xtype: string, cls: any) => void; -type _provider = (xtype: string, cls: any) => void; +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; interface _modules { getModule: (type: string) => any;