napi-rs/examples/napi/__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__ feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
bun-test.js test: refactor the example tests to esm, add bun:test => ava polyfill (#1730) 2023-09-20 01:18:01 -07:00
error-msg.spec.ts refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
generator.spec.ts refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
object-attr.spec.ts refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
strict.spec.ts refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
test.framework.js test: refactor the example tests to esm, add bun:test => ava polyfill (#1730) 2023-09-20 01:18:01 -07:00
tsfn-error.cjs feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
typegen.spec.ts refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
unload.spec.js refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
values.spec.ts feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
worker-thread.spec.ts refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
worker.cjs refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00