kutt
Version:
Node.js & browser (TypeScript) client for Kutt url shortener
13 lines • 358 B
JavaScript
const DATE_KEYS = ["created_at", "updated_at"];
/**
*
* @param key
* @param value
*/
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types,@typescript-eslint/no-explicit-any
export function reviver(key, value) {
if (DATE_KEYS.includes(key))
return new Date(value);
return value;
}
//# sourceMappingURL=utils.js.map