diff --git a/packages/win32-def/src/lib/loader/loader.cache.ts b/packages/win32-def/src/lib/loader/loader.cache.ts index 577ce088..55894219 100644 --- a/packages/win32-def/src/lib/loader/loader.cache.ts +++ b/packages/win32-def/src/lib/loader/loader.cache.ts @@ -51,7 +51,7 @@ export class LoaderCache { const cacheMap = LoaderCache.regCacheMap.get(lib) const map = cacheMap?.get(fnName) if (map?.size) { - const arr = map.entries().next().value as [FnDefArgs, KoffiFunction] | undefined + const arr = map.entries().next().value const ret = arr?.[1] return ret }