UNPKG

brazejs

Version:

Liquid template engine for the Braze variant by pure JavaScript: compatible to Braze, easy to extend.

22 lines (21 loc) 1.25 kB
export declare function escapeRegExp(str: string): string; export declare function isString(value: any): value is string; export declare function isFunction(value: any): value is Function; export declare function promisify<T1, T2>(fn: (arg1: T1, cb: (err: Error | null, result: T2) => void) => void): (arg1: T1) => Promise<T2>; export declare function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, cb: (err: Error | null, result: T3) => void) => void): (arg1: T1, arg2: T2) => Promise<T3>; export declare function stringify(value: any): string; export declare function toLiquid(value: any): any; export declare function isNil(value: any): boolean; export declare function isArray(value: any): value is any[]; export declare function forOwn<T>(object: { [key: string]: T; } | undefined, iteratee: ((val: T, key: string, obj: { [key: string]: T; }) => boolean | void)): { [key: string]: T; }; export declare function last<T>(arr: T[]): T; export declare function last(arr: string): string; export declare function isObject(value: any): value is object; export declare function range(start: number, stop: number, step?: number): number[]; export declare function padStart(str: any, length: number, ch?: string): any;