@trapi/metadata
Version:
Generate REST-API metadata scheme from TypeScript Decorators.
37 lines • 965 B
TypeScript
import type { CacheOptions } from '../cache';
import type { DecoratorConfig } from '../decorator';
export type EntryPointOptions = {
cwd: string;
pattern: string;
};
export type EntryPoint = string | string[] | EntryPointOptions | EntryPointOptions[];
export interface Options {
/**
* The entry point to your API.
*/
entryPoint: EntryPoint;
/**
* Directory to ignore during TypeScript files scan.
* Default: []
*/
ignore?: string[];
/**
* Directory to allow during TypeScript files scan.
* Default: []
*/
allow?: string[];
/**
* Directory to store and cache metadata cache files.
* Default: false
*/
cache?: string | boolean | Partial<CacheOptions>;
/**
* Manual decorator properties configuration.
*/
decorators?: DecoratorConfig[];
/**
* Load a specific preset configuration.
*/
preset?: string;
}
//# sourceMappingURL=type.d.ts.map