ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
16 lines (15 loc) • 841 B
TypeScript
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { ModalOptions } from './modal-types';
export declare function applyConfigDefaults(config: ModalOptions, defaultOptions: ModalOptions): ModalOptions;
export declare function getValueWithConfig<T>(userValue: T | undefined, configValue: T | undefined, defaultValue: T): T | undefined;
/**
* Assign the params into the content component instance.
*
* @deprecated Should use dependency injection to get the params for user
* @breaking-change 14.0.0
*/
export declare function setContentInstanceParams<T>(instance: T, params: Partial<T> | undefined): void;
export declare function getConfigFromComponent<T extends ModalOptions>(component: T): ModalOptions;