fix(napi-derive): incorrect Task output type in some cases (#1466)
This commit is contained in:
parent
9506e3fb14
commit
3158cb058f
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ impl ToTypeDef for NapiImpl {
|
|||
if let Some(output_type) = &self.task_output_type {
|
||||
TASK_STRUCTS.with(|t| {
|
||||
t.borrow_mut().insert(
|
||||
self.js_name.clone(),
|
||||
self.name.to_string(),
|
||||
ty_to_ts_type(output_type, false, true).0,
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue