From ec1eb4b037a23a5a4c87c6db9226b03fc408df0f Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Wed, 14 Apr 2021 22:44:05 +0530 Subject: [PATCH] chore: update type definitions --- declarations/WebpackOptions.d.ts | 4 ++-- types.d.ts | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/declarations/WebpackOptions.d.ts b/declarations/WebpackOptions.d.ts index 6dce7081e..a40692000 100644 --- a/declarations/WebpackOptions.d.ts +++ b/declarations/WebpackOptions.d.ts @@ -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; /** diff --git a/types.d.ts b/types.d.ts index 4761c8166..a9f95cd3c 100644 --- a/types.d.ts +++ b/types.d.ts @@ -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( - fn: (moduleGraph: ModuleGraph, ...args: T) => V, - ...args: T - ): V; + cached(fn: (moduleGraph: ModuleGraph, ...args: T) => V, ...args: T): V; static getModuleGraphForModule( module: Module, deprecateMessage: string,