UNPKG

typedconverter

Version:

Convert object into classes match with TypeScript type annotation

11 lines 232 B
/** * This module will serialize function as [typeof: <Function Name>] instead of [Function] */ module.exports = { test(val) { return typeof val === "function"; }, print(val) { return val.name; }, }