Skip to content

Commit

Permalink
docs(pv-create-component): fix minor typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mbehzad committed May 10, 2024
1 parent 2085297 commit a3c6bbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/pv-create-component/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare namespace PvCreateComponent {
name: ComponentName; // e.g. "related content"
type: ComponentTypes; // is this an element or module
hasScss: boolean; // component has .scss file
hasHbs: hasHbs; // component has .hbs file
hasHbs: boolean; // component has .hbs file
dataFile: DataFileType | false;
hasTs: boolean; // component has .ts file
hasJs: boolean; // component has .js file
Expand Down Expand Up @@ -54,7 +54,7 @@ declare namespace PvCreateComponent {
files?: Array<{
id?: string;
// whether or not the file should be created
when?: boolean | ((opt: Options) => boolean) = true;
when?: boolean | ((opt: Options) => boolean);
// function which returns the boilerplate code to be used as the starter
template: (opt: TemplateOptions) => string;
// path to stored the generated file. is relative to the cmd cwd
Expand All @@ -63,7 +63,7 @@ declare namespace PvCreateComponent {
imports?: Array<{
id?: string;
// whether or not the import should be added
when: boolean | ((opt: Options) => boolean) = true;
when?: boolean | ((opt: Options) => boolean);
// path of file where the import statement is added to
path: string | ((opt: TemplateOptions) => string);
// should return the import statement or any text which will be added to the file
Expand Down

0 comments on commit a3c6bbd

Please sign in to comment.