PHP 8.2.30
Preview: index.d.ts Size: 432 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/import-fresh/index.d.ts

/**
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;

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
432 B lrw-r--r-- 2026-02-28 00:27:12
Edit Download
1.08 KB lrw-r--r-- 2026-02-28 00:26:42
Edit Download
1.09 KB lrw-r--r-- 2026-02-28 00:26:32
Edit Download
890 B lrw-r--r-- 2026-02-28 00:26:52
Edit Download
1.12 KB lrw-r--r-- 2026-02-28 00:27:02
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).