Sha256: 12321580d578772c69333aa5c810b21b6153d0d1caf819be6afcef39c3ff82e9
Contents?: true
Size: 376 Bytes
Versions: 29
Compression:
Stored size: 376 Bytes
Contents
/** Import a module while bypassing the cache. @example ``` // foo.js let i = 0; module.exports = () => ++i; // index.js import importFresh = require('import-fresh'); require('./foo')(); //=> 1 require('./foo')(); //=> 2 importFresh('./foo')(); //=> 1 importFresh('./foo')(); //=> 1 ``` */ declare function importFresh(moduleId: string): unknown; export = importFresh;
Version data entries
29 entries across 29 versions & 4 rubygems