@trapi/metadata
Version:
Generate REST-API metadata scheme from TypeScript Decorators.
33 lines • 754 B
TypeScript
import type { Metadata } from '../generator';
export interface CacheOptions {
/**
* Specify if the cache driver should be enabled.
*
* Default: false
* */
enabled: boolean;
/**
* Directory relative or absolute path.
*
* Default: tmpDir()
*/
directoryPath: string;
/**
* Specify the cache file name.
*
* Default: metadata-{hash}.json
*/
fileName?: string;
/**
* The cache file(s) will be cleared at a 10% percent change
* each time.
*
* Default: true
*/
clearAtRandom: boolean;
}
export type CacheOptionsInput = Partial<CacheOptions>;
export type CacheData = {
sourceFilesSize: number;
} & Metadata;
//# sourceMappingURL=type.d.ts.map