UNPKG

@ohayojp/util

Version:

Universal toolset of ohayojp.

12 lines (11 loc) 732 B
import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { OhayoConfig, OhayoConfigKey } from './config.types'; export declare class OhayoConfigService { private config; constructor(defaultConfig?: OhayoConfig); get<T extends OhayoConfigKey>(componentName: T, key?: string): OhayoConfig[T]; merge<T extends OhayoConfigKey>(componentName: T, ...defaultValues: OhayoConfig[T][]): OhayoConfig[T]; attach<T extends OhayoConfigKey>(componentThis: NzSafeAny, componentName: T, defaultValues: OhayoConfig[T]): void; attachKey<T extends OhayoConfigKey>(componentThis: NzSafeAny, componentName: T, key: string): void; set<T extends OhayoConfigKey>(componentName: T, value: OhayoConfig[T]): void; }