ngx-modialog-11
Version:
Modal / Dialog for Angular
44 lines (43 loc) • 1.29 kB
TypeScript
/**
* Simple object extend
* @param m1
* @param m2
*/
export declare function extend<T>(m1: any, m2: any): T;
/**
* Simple, not optimized, array union of unique values.
* @param arr1
* @param arr2
*/
export declare function arrayUnion<T>(arr1: any[], arr2: any[]): T[];
/**
* Returns true if the config supports a given key.
* @param keyCode
* @param config
*/
export declare function supportsKey(keyCode: number, config: Array<number>): boolean;
/**
* Given an object representing a key/value map of css properties, returns a valid css string
* representing the object.
* Example:
* console.log(toStyleString({
* position: 'absolute',
* width: '100%',
* height: '100%',
* top: '0',
* left: '0',
* right: '0',
* bottom: '0'
* }));
* // position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0
* @param obj
*/
export declare function toStyleString(obj: any | CSSStyleDeclaration): string;
export declare class PromiseCompleter<R> {
promise: Promise<R>;
resolve: (value?: R | PromiseLike<R>) => void;
reject: (error?: any, stackTrace?: string) => void;
constructor();
}
export declare type Class<T> = new (...args: any[]) => T;
export declare function noop(): void;