edgerender-yatl
Version:
Yet Another Template Language
22 lines (21 loc) • 842 B
TypeScript
import type { Result } from './expressions/evaluate';
export declare function shouldnt_happen(type: never): never;
export declare const is_upper_case: (name: string) => boolean;
export declare enum SmartType {
Null = "null",
Undefined = "undefined",
Number = "number",
Boolean = "boolean",
Date = "date",
Regexp = "regexp",
String = "string",
Array = "array",
Object = "object",
Function = "function"
}
export declare const smart_typeof: (obj: any) => SmartType;
export declare const has_property: (obj: any, key: string) => boolean;
export declare const is_object: (v: any) => boolean;
export declare function smart_equals(a: Result, b: Result): boolean;
export declare function remove_undefined<T extends Record<any, any>>(obj: T): T;
export declare function str2stream(str: string): ReadableStream;