node-universe
Version:
基于 Nodejs 环境的一款微服务框架,原理来自于宇宙中的恒星,行星,卫星等系统。
33 lines (32 loc) • 1.87 kB
TypeScript
import { promiseAllControl } from './promiseAllControl';
import { sleep } from './sleep';
import { getMilliseconds } from './getMilliseconds';
import { promiseMethod } from './promiseMethod';
import { functionArguments } from './functionArguments';
import { isNewSignature } from './isNewSignature';
import clearRequireCache from './clearRequireCache';
export declare function isObject(o: any): boolean;
export declare function isString(s: any): boolean;
export declare function isFunction(fn: any): boolean;
export declare function isPlainObject(o: any): boolean;
export declare function getConstructorName(obj: any): string | undefined;
export declare function isInheritedClass(instance: object, baseClass: object): boolean;
export declare function matchActionOrEvent(text: string, pattern: string): boolean;
export declare function makeDirs(filePath: string): void;
export declare function getNodeID(): string;
export declare function generateToken(): string;
export declare function polyfillPromise(P: any): void;
export declare function getIpList(): string[];
export declare function match(text: string, pattern: string): any;
export declare function deprecate(prop: any, msg?: any): void;
export declare function wrapToArray(o: any): any[];
export declare function wrapToHandler(o: Function | object): any;
export declare function circularReplacer(options?: {
maxSafeObjectSize: number;
}): (key: any, value: any) => any;
export declare function safetyObject(obj: any, options?: any): any;
export declare function removeFromArray(arr: Array<any>, item: any): any[];
export declare function humanize(milli: any): string;
export declare function randomInt(a?: number, b?: number): number;
export declare function isDate(date: any): boolean;
export { promiseAllControl, sleep, getMilliseconds, promiseMethod, functionArguments, isNewSignature, clearRequireCache };