Expand description
Symbols to be exported are now defined in this JSON file.
The #[napi_sym]
macro checks for missing entries and panics.
./tools/napi/generate_symbols_list.js
is used to generate the LINK cli/exports.def
on Windows,
which is also checked into git.
To add a new napi function:
- Place
#[napi_sym]
on top of your implementation. - Add the function’s identifier to this JSON list.
- Finally, run
tools/napi/generate_symbols_list.js
to updateext/napi/generated_symbol_exports_list_*.def
.
Re-exports§
pub use deno_core::v8;
Modules§
Macros§
Structs§
- CStr
- Representation of a borrowed C string.
- Env
- EnvShared
- Env that is shared between all contexts in same native module.
- Instance
Data - Napi
Module - Napi
State - deno_
napi - An extension for use with the Deno JS runtime. To use it, provide it as an argument when instantiating your runtime:
- napi_
extended_ error_ info - napi_
node_ version - napi_
property_ descriptor - napi_
type_ tag
Enums§
Constants§
- MODULE_
TO_ REGISTER - NAPI_
AUTO_ LENGTH - napi_
array_ expected - napi_
arraybuffer_ expected - napi_
bigint - napi_
bigint64_ array - napi_
bigint_ expected - napi_
biguint64_ array - napi_
boolean - napi_
boolean_ expected - napi_
callback_ scope_ mismatch - napi_
cancelled - napi_
cannot_ run_ js - napi_
closing - napi_
configurable - napi_
date_ expected - napi_
default - napi_
default_ jsproperty - napi_
default_ method - napi_
detachable_ arraybuffer_ expected - napi_
enumerable - napi_
escape_ called_ twice - napi_
external - napi_
float32_ array - napi_
float64_ array - napi_
function - napi_
function_ expected - napi_
generic_ failure - napi_
handle_ scope_ mismatch - napi_
int8_ array - napi_
int16_ array - napi_
int32_ array - napi_
invalid_ arg - napi_
key_ all_ properties - napi_
key_ configurable - napi_
key_ enumerable - napi_
key_ include_ prototypes - napi_
key_ keep_ numbers - napi_
key_ numbers_ to_ strings - napi_
key_ own_ only - napi_
key_ skip_ strings - napi_
key_ skip_ symbols - napi_
key_ writable - napi_
name_ expected - napi_
no_ external_ buffers_ allowed - napi_
null - napi_
number - napi_
number_ expected - napi_
object - napi_
object_ expected - napi_ok
- napi_
pending_ exception - napi_
queue_ full - napi_
static - napi_
string - napi_
string_ expected - napi_
symbol - napi_
tsfn_ abort - napi_
tsfn_ blocking - napi_
tsfn_ nonblocking - napi_
tsfn_ release - napi_
uint8_ array - napi_
uint8_ clamped_ array - napi_
uint16_ array - napi_
uint32_ array - napi_
undefined - napi_
would_ deadlock - napi_
writable
Statics§
Traits§
Functions§
Type Aliases§
- c_char
- Equivalent to C’s
char
type. - c_void
- Equivalent to C’s
void
type when used as a pointer. - napi_
async_ cleanup_ hook - napi_
async_ cleanup_ hook_ handle - napi_
async_ complete_ callback - napi_
async_ context - napi_
async_ execute_ callback - napi_
async_ work - napi_
callback - napi_
callback_ info - napi_
callback_ scope - napi_
cleanup_ hook - napi_
deferred - napi_
env - napi_
escapable_ handle_ scope - napi_
finalize - napi_
handle_ scope - napi_
key_ collection_ mode - napi_
key_ conversion - napi_
key_ filter - napi_
property_ attributes - napi_
ref - napi_
status - napi_
threadsafe_ function - napi_
threadsafe_ function_ call_ js - napi_
threadsafe_ function_ call_ mode - napi_
threadsafe_ function_ release_ mode - napi_
typedarray_ type - napi_
value - napi_
valuetype