Sha256: e4710b99a773771f491efeea09cb45f393e2173c186acd84051b7d7495e102e0

Contents?: true

Size: 432 Bytes

Versions: 66

Compression:

Stored size: 432 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

const foo = importFresh<typeof import('./foo')>('./foo');
```
*/
declare function importFresh<T>(moduleId: string): T;

export = importFresh;

Version data entries

66 entries across 65 versions & 7 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.61 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.60 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.59 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.58 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.57 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.56 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.55 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.54 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.53 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.52 node_modules/import-fresh/index.d.ts
trusty-cms-6.3.1 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.51 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.50 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.49 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.48 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.47 node_modules/import-fresh/index.d.ts
immosquare-cleaner-0.1.46 node_modules/import-fresh/index.d.ts
pcp-server-ruby-sdk-0.0.6 node_modules/import-fresh/index.d.ts
pcp-server-ruby-sdk-0.1.0 node_modules/import-fresh/index.d.ts