strapi-plugin-gen-types
Version:
Generate types for the different collections, single types & components found in your application
30 lines (29 loc) • 700 B
TypeScript
/**
* Config for Gen Types Plugin
*/
export type GenTypesConfig = {
/**
* The location where the generated types will be saved
*
* @default 'src/genTypes'
*/
outputLocation: string;
/**
* Whether to generate a single file with all types or separate files
*
* If this is true, then the value for `outputLocation` will be treated as a file path instead of a directory path
*
* @default false
*/
singleFile: boolean;
};
declare const _default: {
default: ({ env }: {
env: any;
}) => {
outputLocation: any;
singleFile: any;
};
validator(config: GenTypesConfig): void;
};
export default _default;