@captive/plop-config
Version:
31 lines (30 loc) • 809 B
TypeScript
export interface VueComponentGeneratorOptions {
styleSheet: 'css' | 'scss';
componentPath: string;
}
export declare const vueComponentGenerator: (options: VueComponentGeneratorOptions) => {
name: string;
generator: {
prompts: {
type: string;
message: string;
suffix: string;
validate: (promptValue: string) => boolean | string;
name: string;
}[];
actions: () => ({
path: string;
template: string;
type: "add";
data?: never;
} | {
path: string;
data: {
styleSheet: "css" | "scss";
componentPath: string;
};
template: string;
type: "add";
})[];
};
};