UNPKG

angular2-platform-node

Version:

Universal (isomorphic) javascript support for Angular2

65 lines (64 loc) 2.19 kB
export declare function cssHyphenate(propertyName: string): string; export declare function isPresent(obj: any): boolean; export declare function isString(str: any): boolean; export declare function isBlank(obj: any): boolean; export declare function regExFirstMatch(regExp: RegExp, input: string): RegExpExecArray; export declare function setValueOnPath(context: any, path: string, value: any): void; export declare class ListWrapper { static contains<T>(list: T[], el: T): boolean; static remove<T>(list: T[], el: T): boolean; } export declare class StringMapWrapper { static create(): { [k: string]: any; }; static contains(map: { [key: string]: any; }, key: string): boolean; static get<V>(map: { [key: string]: V; }, key: string): V; static set<V>(map: { [key: string]: V; }, key: string, value: V): void; static keys(map: { [key: string]: any; }): string[]; static values<T>(map: { [key: string]: T; }): T[]; static isEmpty(map: { [key: string]: any; }): boolean; static delete(map: { [key: string]: any; }, key: string): void; static forEach<V>(map: { [key: string]: V; }, callback: (v: V, key: string) => void): void; static merge<V>(m1: { [key: string]: V; }, m2: { [key: string]: V; }): { [key: string]: V; }; static equals<V>(m1: { [key: string]: V; }, m2: { [key: string]: V; }): boolean; } export declare function camelCaseToDashCase(input: string): string; export declare function dashCaseToCamelCase(input: string): string; export declare function stringify(token: any): string; export declare const listContains: (list: any[], el: any) => boolean; export declare function stringMapForEach(map: { [key: string]: any; }, callback: (V, K) => void): void; export declare const isSuccess: (status: number) => boolean; export declare function _randomChar(): string; export declare function _appIdRandomProviderFactory(): string; export declare function arrayFlattenTree(children: any[], arr: any[]): any[]; declare var __empty: any; export default __empty;