From f2f383d9e7e971ec66ab94a977d0fd8192588fe6 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:58:43 +0900 Subject: [PATCH] chore: fix types --- packages/unplugin-typia/src/core/typia.ts | 6 +++--- packages/unplugin-typia/tests/rollup.spec.ts | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/unplugin-typia/src/core/typia.ts b/packages/unplugin-typia/src/core/typia.ts index 68de8684..0040435d 100644 --- a/packages/unplugin-typia/src/core/typia.ts +++ b/packages/unplugin-typia/src/core/typia.ts @@ -65,7 +65,7 @@ export async function transformTypia( * @param tsconfigId - The tsconfig.json path. @default undefined */ async function getTsCompilerOption(cacheEnable = true, tsconfigId?: string): Promise { - const parseTsComilerOptions = async () => { + const parseTsCompilerOptions = async () => { const readFile = (path: string) => ts.sys.readFile(path); const id = (tsconfigId != null) ? resolve(tsconfigId) : await resolveTSConfig(); @@ -81,10 +81,10 @@ async function getTsCompilerOption(cacheEnable = true, tsconfigId?: string): Pro /** parse tsconfig compilerOptions */ if (cacheEnable) { - compilerOptions ??= await parseTsComilerOptions(); + compilerOptions ??= await parseTsCompilerOptions(); } else { - compilerOptions = await parseTsComilerOptions(); + compilerOptions = await parseTsCompilerOptions(); } return compilerOptions; diff --git a/packages/unplugin-typia/tests/rollup.spec.ts b/packages/unplugin-typia/tests/rollup.spec.ts index 0771a6e4..6548da5e 100644 --- a/packages/unplugin-typia/tests/rollup.spec.ts +++ b/packages/unplugin-typia/tests/rollup.spec.ts @@ -11,10 +11,12 @@ async function transform(_id: ID) { const result = await rollupBuild( id, [ + // @ts-expect-error type does not match UnpluginInlineTypia({ cache: false, log: false, }), + // @ts-expect-error type does not match RollupEsbuildPlugin(), { name: 'test:mod-options',