Skip to content

Commit

Permalink
refactor: use global prettify helper type
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Sep 23, 2023
1 parent af8b8b5 commit 8bbeaf0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/vue-language-core/src/generators/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export function generate(
mergePropDefaults: false,
WithTemplateSlots: false,
PropsChildren: false,
Prettify: false,
};

codes.push(`/* ${Object.entries(vueCompilerOptions).map(([key, value]) => `${key}: ${JSON.stringify(value)}`).join(', ')} */\n`);
Expand Down Expand Up @@ -122,7 +121,6 @@ export function generate(
default: D[K]
}> : P[K]
};\n`);
usedHelperTypes.Prettify = true;
}
if (usedHelperTypes.WithTemplateSlots) {
codes.push(
Expand Down Expand Up @@ -571,7 +569,6 @@ declare function defineProp<T>(value?: T | (() => T), required?: boolean, rest?:
codes.push(`},\n`);
}
if (scriptSetupRanges.defineEmits) {
usedHelperTypes.Prettify = true;
codes.push(
`emits: ({} as __VLS_Prettify<__VLS_UnionToIntersection<__VLS_NormalizeEmits<typeof `,
scriptSetupRanges.emitsAssignName ?? '__VLS_emit',
Expand Down

0 comments on commit 8bbeaf0

Please sign in to comment.