diff --git a/packages/varlet-cli/template/create/[componentName].d.ts.ejs b/packages/varlet-cli/template/create/[componentName].d.ts.ejs new file mode 100644 index 00000000000..a7c6e61714e --- /dev/null +++ b/packages/varlet-cli/template/create/[componentName].d.ts.ejs @@ -0,0 +1,13 @@ +import { VarComponent, BasicAttributes, SetPropsDefaults } from '../../types/varComponent' + +export declare const <%- camelizeName %>Props: RecordProps, any> + +export interface <%- bigCamelizeName %>Props extends BasicAttributes {} + +export class <%- bigCamelizeName %> extends VarComponent { + static setPropsDefaults: SetPropsDefaults<<%- bigCamelizeName %>Props> + + $props: <%- bigCamelizeName %>Props +} + +export class _<%- bigCamelizeName %>Component extends <%- bigCamelizeName %> {} \ No newline at end of file