napi-rs/examples/napi-compat-mode/__tests__
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
..
__snapshots__
napi4
napi5
napi6
napi7
napi8
serde
array.spec.ts
arraybuffer.spec.ts
buffer.spec.ts
class.spec.ts
cleanup-env.spec.ts
create-external.spec.ts
either.spec.ts
env.spec.ts
function.spec.ts
get-napi-version.spec.ts
global.spec.ts
js-value.spec.ts
napi-version.ts
object.spec.ts
spawn.spec.ts
string.spec.ts
symbol.spec.ts
throw.spec.ts