UNPKG

871 BTypeScriptView Raw
1import { Reflection } from "tinspector";
2import { Class } from "./core";
3declare global {
4 interface String {
5 format(...args: any[]): string;
6 }
7 interface Array<T> {
8 flatten(): T;
9 }
10}
11export declare function hasKeyOf<T>(opt: any, key: string): opt is T;
12export declare function isCustomClass(type: Function | Function[]): boolean;
13export declare function resolvePath(path: string): string[];
14export declare function reflectPath(path: string | Class | Class[]): Reflection[];
15export declare namespace consoleLog {
16 function startMock(): void;
17 function clearMock(): void;
18}
19export declare function getChildValue(object: any, path: string, defaultValue?: any): any;
20export declare function createRoute(...args: string[]): string;
21export declare function mkdirp(path: string): void;
22export declare function safeToString(value: any): any;