How to use utils-merge - 2 common examples

To help you get started, we’ve selected a few utils-merge examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / utils-merge / utils-merge-tests.ts View on Github external
import merge from "utils-merge";

type Result = {a: string, b: number};

let result: Result;

result = merge<{a: string}, {b: number}, Result>({a: ''}, {b: 42});
github kittn / generator-kittn / app / templates / src / gulpfile / tasks / watch-js.js View on Github external
const watchJsTask = () => {
  var args = merge(watchify.args, { debug: true })
  var bundler = watchify(browserify(kc.src.js + kc.files.jsApp.srcName, args)).transform(babelify.configure({presets: ["es2015"]}))

  bundleJs(bundler)

  bundler.on('update', function () {
    bundleJs(bundler)
    console.log('Bundeled JS Files')
  })
}

utils-merge

merge() utility function

MIT
Latest version published 7 years ago

Package Health Score

73 / 100
Full package analysis

Popular utils-merge functions