From a5c9a8dccbbb7b653cdb295a91a964baa2c51e50 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Fri, 16 Aug 2024 17:17:12 +0100 Subject: [PATCH] fix(typia.ts): strict-boolean-expression --- packages/unplugin-typia/src/core/typia.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/unplugin-typia/src/core/typia.ts b/packages/unplugin-typia/src/core/typia.ts index 0f9c5091..92948f4d 100644 --- a/packages/unplugin-typia/src/core/typia.ts +++ b/packages/unplugin-typia/src/core/typia.ts @@ -115,7 +115,7 @@ async function getProgramAndSource( ); const host = ts.createCompilerHost(compilerOptions); - if (aliases && aliases.length) { + if (aliases != null && aliases.length > 0) { host.resolveModuleNameLiterals = (moduleLiterals, containingFile, _, options) => { return moduleLiterals.map((lit) => { let module = ts.resolveModuleName(lit.text, containingFile, options, host, host.getModuleResolutionCache?.());