UNPKG

@singleton-i18n/angular-client

Version:

Singleton client code for Angular 10.

34 lines (33 loc) 1.24 kB
/** * verify value if undefined or null */ export declare function isDefined(value: any): boolean; /** * Format translation string, e.g. 'No custom buckets specified for {0}' */ export declare function format(message: string, args: any[]): string; export declare function mergeObject(a: any, b: any): Object; export declare function equals(o1: any, o2: any): boolean; export declare function Mixin(baseCtors: Function[], data?: any): (derivedCtor: Function) => void; /** * Returns the culture language code name from the browser, e.g. "de-DE" * @returns string */ export declare function getBrowserCultureLang(): string; export declare function deprecatedWarn(name: string, version: string, substitute: string): void; /** * Merge the key-value pair which defined in each object and * check whether the key is globally unique * TODO: Support object directly * @param target Target object contains all strings * @param source A set of source objects */ export declare function assign(target: { [x: string]: any; }, source: { [x: string]: any; }[]): { [x: string]: any; }; export declare function isEmptyObject(obj: any): boolean; export declare function parseOption(name: string, range: number[], a: any): number;