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 (13 loc) 387 B
module.exports = function(methodsList) { let strImport = ''; let strInterface = ''; methodsList.forEach((methodName) => { strImport += `import ${methodName} from "./${methodName}";\n`; strInterface += ` ${methodName}: typeof ${methodName};\n`; }); return `/* build/tpl */ ${strImport} export default function addDeepdash<Src>(_: Src): Src & { ${strInterface}}; `; };