diff --git a/packages/abc/cell/provide.ts b/packages/abc/cell/provide.ts index 76a9537a3..1fc429c6c 100644 --- a/packages/abc/cell/provide.ts +++ b/packages/abc/cell/provide.ts @@ -4,10 +4,15 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types'; import { CellService } from './cell.service'; +export interface CellWidgetProvideConfig { + KEY: string; + type: NzSafeAny; +} + /** * Just only using Standalone widgets */ -export function provideCellWidgets(...widgets: Array<{ KEY: string; type: NzSafeAny }>): EnvironmentProviders { +export function provideCellWidgets(...widgets: CellWidgetProvideConfig[]): EnvironmentProviders { return makeEnvironmentProviders([ { provide: ENVIRONMENT_INITIALIZER, diff --git a/packages/abc/st/provide.ts b/packages/abc/st/provide.ts index 6a5ea2462..0425073de 100644 --- a/packages/abc/st/provide.ts +++ b/packages/abc/st/provide.ts @@ -4,10 +4,15 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types'; import { STWidgetRegistry } from './st-widget'; +export interface STWidgetProvideConfig { + KEY: string; + type: NzSafeAny; +} + /** * Just only using Standalone widgets */ -export function provideSTWidgets(...widgets: Array<{ KEY: string; type: NzSafeAny }>): EnvironmentProviders { +export function provideSTWidgets(...widgets: STWidgetProvideConfig[]): EnvironmentProviders { return makeEnvironmentProviders([ { provide: ENVIRONMENT_INITIALIZER,