first commit
This commit is contained in:
27
node_modules/@oclif/core/lib/cache.d.ts
generated
vendored
Normal file
27
node_modules/@oclif/core/lib/cache.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Config } from './config/config';
|
||||
import { OclifConfiguration, Plugin } from './interfaces';
|
||||
type CacheContents = {
|
||||
rootPlugin: Plugin;
|
||||
config: Config;
|
||||
exitCodes: OclifConfiguration['exitCodes'];
|
||||
'@oclif/core': OclifCoreInfo;
|
||||
};
|
||||
type OclifCoreInfo = {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
type ValueOf<T> = T[keyof T];
|
||||
/**
|
||||
* A simple cache for storing values that need to be accessed globally.
|
||||
*/
|
||||
export default class Cache extends Map<keyof CacheContents, ValueOf<CacheContents>> {
|
||||
static instance: Cache;
|
||||
constructor();
|
||||
static getInstance(): Cache;
|
||||
get(_key: 'config'): Config | undefined;
|
||||
get(_key: '@oclif/core'): OclifCoreInfo;
|
||||
get(_key: 'rootPlugin'): Plugin | undefined;
|
||||
get(_key: 'exitCodes'): OclifConfiguration['exitCodes'] | undefined;
|
||||
private getOclifCoreMeta;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user