Skip to content

Commit

Permalink
fix: add GlobalComponents
Browse files Browse the repository at this point in the history
Signed-off-by: BTBMan <1498118157@qq.com>
  • Loading branch information
BTBMan committed Jan 25, 2024
1 parent a072c31 commit ac93b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ ${dts}`.trim()}\n`
if (options.vueTemplate) {
currentContent = currentContent.replace(
componentCustomPropertiesReg,
($1) => `export interface GlobalComponents {}\n ${$1}`,
($1) => `interface GlobalComponents {}\n ${$1}`,

Check failure on line 151 in src/core/ctx.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected parentheses around single function argument having a body with no curly braces
);

Check failure on line 152 in src/core/ctx.ts

View workflow job for this annotation

GitHub Actions / lint

Extra semicolon
}
if (originalDTS) {
Expand Down

0 comments on commit ac93b3d

Please sign in to comment.