UNPKG

deepdash

Version:

➔ 𝐃eep standalone lib / 𝐋odash extension: ✓ eachDeep ✓ filterDeep ✓ mapDeep ✓ reduceDeep ✓ pickDeep ✓ omitDeep ✓ keysDeep ✓ index ✓ condenseDeep ⋮ Parents stack ⋮ Circular check ⋮ Leaves only mode ⋮ Children mode ⋮ cherry-pick ⋮ esm

15 lines (11 loc) 366 B
var arstr = require('../arstr'); module.exports = function(methodName) { let capMethodName = arstr.upFirst(methodName); return `/* build/tpl */ import ${methodName} from "./${methodName}"; interface I${capMethodName}Added { ${methodName}: typeof ${methodName}; } export default function add${capMethodName}<Src>(_: Src): Src & I${capMethodName}Added; `; };