37 lines
1.1 KiB
TypeScript
Raw Normal View History

2019-10-03 05:25:14 +02:00
declare module 'global';
declare module '@storybook/semver';
declare module 'unfetch/dist/unfetch';
2020-10-20 19:24:24 +02:00
declare module 'lazy-universal-dotenv';
declare module 'pnp-webpack-plugin';
declare module '@storybook/theming/paths';
declare module '@storybook/ui/paths';
declare module 'better-opn';
declare module '@storybook/ui';
2020-11-23 16:37:35 +01:00
declare module 'file-system-cache' {
export interface Options {
basePath?: string;
ns?: string | string[];
extension?: string;
}
export declare class FileSystemCache {
constructor(options: Options);
path(key: string): string;
fileExists(key: string): Promise<boolean>;
ensureBasePath(): Promise<void>;
get(key: string, defaultValue?: any): Promise<any | typeof defaultValue>;
getSync(key: string, defaultValue?: any): any | typeof defaultValue;
2021-02-04 01:19:26 +08:00
set(key: string, value: any): Promise<{ path: string }>
2020-11-23 16:37:35 +01:00
setSync(key: string, value: any): this;
remove(key: string): Promise<void>;
clear(): Promise<void>;
save(): Promise<{ paths: string[] }>;
2021-02-04 01:19:26 +08:00
load(): Promise<{ files: Array<{ path: string, value: any }> }>;
2020-11-23 16:37:35 +01:00
}
function create(options: Options): FileSystemCache;
export = create;
}