nsole
Version:
A drop-in isomorphic console.* replacement that's pretty, small, fast, and flexible
26 lines • 1.06 kB
text/typescript
type Binary = 0 | 1;
type TmplFlags = {
is_fg?: Binary;
is_ansi?: Binary;
is_txt?: Binary;
is_indv?: Binary;
};
declare const ETARGETS: readonly ["browser", "node"];
declare const VTARGETS: readonly ["ansi", "ansi/fg", "theme", "theme/fg"];
declare const PTARGETS: readonly ["b", "c", "e", "f", "l", "p", "s"];
type Vtarget = typeof VTARGETS[number];
type Ptarget = typeof PTARGETS[number];
type Etarget = typeof ETARGETS[number];
/**
* makeIt - the bun macro that is used with the import/export files;
* it generates the specified asset at bundle-time, although, kind-of-a dink-around
* to get bun/JavaScriptCore to load properly without throwin 404
* @param {Ptarget} [ptarget='p'] - tag target
* @param {Vtarget} [vtarget='theme'] - variation
* @param {Etarget} [etarget='node'] - env
* @param {TmplFlags}
* @return {void}
*/
export declare const makeIt: (ptarget?: Ptarget, vtarget?: Vtarget, etarget?: Etarget, flags?: TmplFlags) => number;
export {};
//# sourceMappingURL=_maker_.d.ts.map