Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111513845
index.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 2, 20:36
Size
432 B
Mime Type
text/x-java
Expires
Sun, May 4, 20:36 (2 d)
Engine
blob
Format
Raw Data
Handle
25874199
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
index.d.ts
View Options
/**
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;
Event Timeline
Log In to Comment