UNPKG

@omnia/tooling

Version:

Provide basic stuffs extensible for omnia extension.

26 lines (25 loc) 1.2 kB
declare enum LogTypes { Info = 1, Warning = 2, Error = 3, HeadLine = 4 } declare function rewriteFile(args: any): void; declare function getCurrentDateTime(): string; declare function timeWatch(timerId: any, callBack: any, msWait: any): void; declare function root(args: any): any; /** * Generate relatively-safe guid */ export declare function generateGuid(): string; declare function isValidGuid(value: any): boolean; declare function isNull(obj: any): boolean; declare function isNullOrEmpty(obj: any): boolean; declare function getDirectories(path: any): any; declare function getGuidValue(value: string): string; declare function getFileName(source: string): any; declare function log(message: any, type?: LogTypes, writeToClient?: boolean): void; declare function logTime(message: string, start: number): void; declare function registerLogToClient(handler: (message: string, logType?: LogTypes) => void): void; declare function ensureTraillingSlash(path: string): string; export { ensureTraillingSlash, registerLogToClient, rewriteFile, getCurrentDateTime, timeWatch, root, isValidGuid, isNull, isNullOrEmpty, getDirectories, getGuidValue, getFileName, logTime, log, LogTypes };