From 6b7cd185a1d376242b14db177f8331c60bbb0c68 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 13 Apr 2022 23:53:27 +0800 Subject: [PATCH] fix(napi-derive): JsUnknown should be unknown type --- crates/backend/src/typegen.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/backend/src/typegen.rs b/crates/backend/src/typegen.rs index 94e6c899..75efceb7 100644 --- a/crates/backend/src/typegen.rs +++ b/crates/backend/src/typegen.rs @@ -189,6 +189,7 @@ static KNOWN_TYPES: Lazy> = Lazy::new(|| { ("JsFunction", "(...args: any[]) => any"), ("JsGlobal", "typeof global"), ("External", "ExternalObject<{}>"), + ("JsUnknown", "unknown"), ]); map