napi-rs/crates
LongYinan 4719caa643
feat(napi): support Return generic of ThreadsafeFunction (#1997)
* feat(napi): support to use tuple with either (#1993)

`Either` uses `ValidateNapiValue` + `TypeName` to validate and report error on value not being matched. So there's no way to remove these super traits from it. So I implemented these types to `Tuple` types.

* feat(napi): support `Return` generic of ThreadsafeFunction

* depracate JsFunction

* CalleeHandled tsfn should handle Result in callback

* Pass env to call_with_return_value callback

* Fix compile

* clippy fix

* Fix electron test

* Function args

---------

Co-authored-by: Hana <andywangsy@gmail.com>
2024-03-20 21:37:08 +08:00
..
backend feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
build Release independent packages 2024-02-19 19:10:16 +08:00
macro feat(napi-derive): add optional enum_string case conversion (#1995) 2024-03-11 20:10:00 +08:00
napi feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
sys Release independent packages 2023-11-07 14:18:36 +08:00