Skip to content

Commit c99b0ab

Browse files
committed
fix(language-core): add back writeGlobalTypes for backward compatibility
1 parent cb39157 commit c99b0ab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/language-core/lib/compilerOptions.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,3 +338,13 @@ export function createGlobalTypesWriter(
338338
return result;
339339
};
340340
}
341+
342+
/**
343+
* @deprecated use `createGlobalTypesWriter` instead
344+
*/
345+
export function writeGlobalTypes(
346+
vueOptions: VueCompilerOptions,
347+
writeFile: (fileName: string, data: string) => void,
348+
) {
349+
vueOptions.globalTypesPath = createGlobalTypesWriter(vueOptions, writeFile);
350+
}

0 commit comments

Comments
 (0)