jsfast
Version:
Fastjs(jsfast) is a useful, lightweight JavaScript library for any types of project.
13 lines (12 loc) • 973 B
TypeScript
declare function browserCheck(module: string): void;
type style = "fastjs.bold" | "fastjs.reverse" | "fastjs.red" | "fastjs.green" | "fastjs.yellow" | "fastjs.blue" | "fastjs.magenta" | "fastjs.cyan" | "fastjs.white" | "fastjs.gray" | "fastjs.bgRed" | "fastjs.bgGreen" | "fastjs.bgYellow" | "fastjs.bgBlue" | "fastjs.bgMagenta" | "fastjs.bgCyan" | "fastjs.bgWhite" | "fastjs.bgGray" | "fastjs.wrong" | "fastjs.right" | "fastjs.warn";
declare function warn(module: string, message: string, args?: Array<any>, styleArgs?: Array<style | Array<style>>): void;
declare function error(module: string, message: string, args?: Array<any>, styleArgs?: Array<style | Array<style>>): Error;
declare function experimentFeatureWarning(id: string, name: string, call: string): void;
declare const _default: {
browserCheck: typeof browserCheck;
experimentFeatureWarning: typeof experimentFeatureWarning;
warn: typeof warn;
error: typeof error;
};
export default _default;