napi-rs/examples/napi
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
..
__tests__ feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
browser refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
electron-renderer refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
src feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
tests fix(napi-derive): more accurate napi expanding error (#1854) 2023-12-13 15:23:00 +08:00
.gitignore
browser.js fix(cli): add browser entry (#1899) 2024-01-10 11:18:13 +08:00
build.rs
Cargo.toml feat(napi): extends the Map types interoperability (#1950) 2024-02-15 15:43:21 +08:00
electron.cjs feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
example.wasi-browser.js refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
example.wasi.cjs refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
index.cjs feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
index.d.cts feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
index.html feat: add wasm runtime package (#1904) 2024-01-16 23:28:40 +08:00
package.json feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
tsconfig.json
vite-entry.js feat: add wasm runtime package (#1904) 2024-01-16 23:28:40 +08:00
vite.config.js feat: add wasm runtime package (#1904) 2024-01-16 23:28:40 +08:00
wasi-worker-browser.mjs fix(cli,wasm-runtime): dependencies (#1905) 2024-01-17 00:57:29 +08:00
wasi-worker.mjs fix(cli,wasm-runtime): dependencies (#1905) 2024-01-17 00:57:29 +08:00