Skip to content

Commit ac5d8aa

Browse files
committed
refactor: make all properties required
1 parent 88f5ff7 commit ac5d8aa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/language-core/lib/types.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,9 @@ export type VueLanguagePluginReturn = {
9797
template: string,
9898
options: CompilerDOM.CompilerOptions,
9999
): CompilerDOM.CodegenResult | undefined;
100-
compileSFCStyle?(lang: string, style: string): {
101-
imports?: Sfc['styles'][number]['imports'];
102-
bindings?: Sfc['styles'][number]['bindings'];
103-
classNames?: Sfc['styles'][number]['classNames'];
104-
} | undefined;
100+
compileSFCStyle?(lang: string, style: string):
101+
| Pick<Sfc['styles'][number], 'imports' | 'bindings' | 'classNames'>
102+
| undefined;
105103
updateSFCTemplate?(
106104
oldResult: CompilerDOM.CodegenResult,
107105
textChange: { start: number; end: number; newText: string },

0 commit comments

Comments
 (0)