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