strapi-plugin-gen-types
Version:
Generate types for the different collections, single types & components found in your application
21 lines (20 loc) • 447 B
TypeScript
export type StrapiAttribute = {
type: string;
required?: boolean;
default?: any;
enum?: string[];
target?: string;
relation?: string;
mappedBy?: string;
inversedBy?: string;
multiple?: boolean;
repeatable?: boolean;
component?: string;
};
export interface StrapiSchema {
attributes: Record<string, StrapiAttribute>;
}
/**
* The name of the plugin
*/
export declare const pluginName = "gen-types";