@thepassle/app-tools
Version:
Collection of tools I regularly use to build apps. Maybe they're useful to somebody else. Maybe not. Most of these are thin wrappers around native API's, like the native `<dialog>` element, `fetch` API, and `URLPattern`.
19 lines (18 loc) • 465 B
TypeScript
/**
* @param {boolean} value
*/
export function setDebug(value: boolean): void;
/**
* @returns {boolean}
*/
export function getDebug(): boolean;
/**
* @param {string} action - describing the action
* @param {*} [data] - any js value
*/
export function log(action: string, data?: any): void;
/**
* @param {string} title
* @returns {(action: string, data?: any) => void}
*/
export function createLogger(title: string): (action: string, data?: any) => void;