chore: update type definitions

This commit is contained in:
jamesgeorge007 2021-04-14 22:44:05 +05:30
parent 9f9976d3cd
commit ec1eb4b037
2 changed files with 5 additions and 8 deletions

View File

@ -938,11 +938,11 @@ export interface FileCacheOptions {
*/
hashAlgorithm?: string;
/**
* Time in ms after which idle period the cache storing should happen (only for store: 'pack' or 'idle').
* Time in ms after which idle period the cache storing should happen (only for store: 'pack').
*/
idleTimeout?: number;
/**
* Time in ms after which idle period the initial cache storing should happen (only for store: 'pack' or 'idle').
* Time in ms after which idle period the initial cache storing should happen (only for store: 'pack').
*/
idleTimeoutForInitialStore?: number;
/**

9
types.d.ts vendored
View File

@ -3778,12 +3778,12 @@ declare interface FileCacheOptions {
hashAlgorithm?: string;
/**
* Time in ms after which idle period the cache storing should happen (only for store: 'pack' or 'idle').
* Time in ms after which idle period the cache storing should happen (only for store: 'pack').
*/
idleTimeout?: number;
/**
* Time in ms after which idle period the initial cache storing should happen (only for store: 'pack' or 'idle').
* Time in ms after which idle period the initial cache storing should happen (only for store: 'pack').
*/
idleTimeoutForInitialStore?: number;
@ -6255,10 +6255,7 @@ declare class ModuleGraph {
getMetaIfExisting(thing?: any): Object;
freeze(): void;
unfreeze(): void;
cached<T extends any[], V>(
fn: (moduleGraph: ModuleGraph, ...args: T) => V,
...args: T
): V;
cached<T, V>(fn: (moduleGraph: ModuleGraph, ...args: T) => V, ...args: T): V;
static getModuleGraphForModule(
module: Module,
deprecateMessage: string,