refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
22
home/ags/node_modules/eslint-module-utils/ModuleCache.d.ts
generated
vendored
22
home/ags/node_modules/eslint-module-utils/ModuleCache.d.ts
generated
vendored
|
|
@ -1,22 +0,0 @@
|
|||
import type { ESLintSettings } from "./types";
|
||||
|
||||
export type CacheKey = unknown;
|
||||
export type CacheObject = {
|
||||
result: unknown;
|
||||
lastSeen: ReturnType<typeof process.hrtime>;
|
||||
};
|
||||
|
||||
declare class ModuleCache {
|
||||
map: Map<CacheKey, CacheObject>;
|
||||
|
||||
constructor(map?: Map<CacheKey, CacheObject>);
|
||||
|
||||
get<T>(cacheKey: CacheKey, settings: ESLintSettings): T | undefined;
|
||||
|
||||
set<T>(cacheKey: CacheKey, result: T): T;
|
||||
|
||||
static getSettings(settings: ESLintSettings): { lifetime: number } & Omit<ESLintSettings['import/cache'], 'lifetime'>;
|
||||
}
|
||||
export default ModuleCache;
|
||||
|
||||
export type { ModuleCache }
|
||||
Loading…
Add table
Add a link
Reference in a new issue