napi-rs/examples/napi/example.wasi-browser.js
LongYinan 4c7d06fc72
feat(cli): support wasm32-wasipxx targets (#2030)
* chore(examples): update wasi binding template

* wasm32-wasip1
2024-04-10 09:08:57 +08:00

659 lines
36 KiB
JavaScript

import {
instantiateNapiModuleSync as __emnapiInstantiateNapiModuleSync,
getDefaultContext as __emnapiGetDefaultContext,
WASI as __WASI,
} from '@napi-rs/wasm-runtime'
import {
Volume as __Volume,
createFsFromVolume as __createFsFromVolume,
} from '@napi-rs/wasm-runtime/fs'
import __wasmUrl from './example.wasm32-wasi.wasm?url'
const __fs = __createFsFromVolume(
__Volume.fromJSON({
'/': null,
}),
)
const __wasi = new __WASI({
version: 'preview1',
fs: __fs,
})
const __emnapiContext = __emnapiGetDefaultContext()
const __sharedMemory = new WebAssembly.Memory({
initial: 1024,
maximum: 10240,
shared: true,
})
const __wasmFile = await fetch(__wasmUrl).then((res) => res.arrayBuffer())
const {
instance: __napiInstance,
module: __wasiModule,
napiModule: __napiModule,
} = __emnapiInstantiateNapiModuleSync(__wasmFile, {
context: __emnapiContext,
asyncWorkPoolSize: 4,
wasi: __wasi,
onCreateWorker() {
return new Worker(new URL('./wasi-worker-browser.mjs', import.meta.url), {
type: 'module',
})
},
overwriteImports(importObject) {
importObject.env = {
...importObject.env,
...importObject.napi,
...importObject.emnapi,
memory: __sharedMemory,
}
return importObject
},
beforeInit({ instance }) {
__napi_rs_initialize_modules(instance)
},
})
function __napi_rs_initialize_modules(__napiInstance) {
__napiInstance.exports['__napi_register__Shared_struct_0']?.()
__napiInstance.exports['__napi_register__DEFAULT_COST_0']?.()
__napiInstance.exports['__napi_register__TYPE_SKIPPED_CONST_1']?.()
__napiInstance.exports['__napi_register__get_words_2']?.()
__napiInstance.exports['__napi_register__get_nums_3']?.()
__napiInstance.exports['__napi_register__sum_nums_4']?.()
__napiInstance.exports['__napi_register__to_js_obj_5']?.()
__napiInstance.exports['__napi_register__get_num_arr_6']?.()
__napiInstance.exports['__napi_register__get_nested_num_arr_7']?.()
__napiInstance.exports['__napi_register__read_file_async_8']?.()
__napiInstance.exports['__napi_register__async_multi_two_9']?.()
__napiInstance.exports['__napi_register__bigint_add_10']?.()
__napiInstance.exports['__napi_register__create_big_int_11']?.()
__napiInstance.exports['__napi_register__create_big_int_i64_12']?.()
__napiInstance.exports['__napi_register__bigint_get_u64_as_string_13']?.()
__napiInstance.exports['__napi_register__bigint_from_i64_14']?.()
__napiInstance.exports['__napi_register__bigint_from_i128_15']?.()
__napiInstance.exports['__napi_register__get_cwd_16']?.()
__napiInstance.exports['__napi_register__option_end_17']?.()
__napiInstance.exports['__napi_register__option_start_18']?.()
__napiInstance.exports['__napi_register__option_start_end_19']?.()
__napiInstance.exports['__napi_register__option_only_20']?.()
__napiInstance.exports['__napi_register__read_file_21']?.()
__napiInstance.exports['__napi_register__return_js_function_22']?.()
__napiInstance.exports['__napi_register__callback_return_promise_23']?.()
__napiInstance.exports[
'__napi_register__callback_return_promise_and_spawn_24'
]?.()
__napiInstance.exports['__napi_register__capture_error_in_callback_25']?.()
__napiInstance.exports['__napi_register__Animal_struct_26']?.()
__napiInstance.exports['__napi_register__Animal_impl_38']?.()
__napiInstance.exports['__napi_register__Dog_struct_39']?.()
__napiInstance.exports['__napi_register__Bird_struct_40']?.()
__napiInstance.exports['__napi_register__Bird_impl_45']?.()
__napiInstance.exports['__napi_register__Blake2bHasher_struct_46']?.()
__napiInstance.exports['__napi_register__Blake2bHasher_impl_48']?.()
__napiInstance.exports['__napi_register__Blake2bHasher_impl_50']?.()
__napiInstance.exports['__napi_register__Blake2bKey_struct_51']?.()
__napiInstance.exports['__napi_register__Context_struct_52']?.()
__napiInstance.exports['__napi_register__Context_impl_57']?.()
__napiInstance.exports[
'__napi_register__AnimalWithDefaultConstructor_struct_58'
]?.()
__napiInstance.exports['__napi_register__NinjaTurtle_struct_59']?.()
__napiInstance.exports['__napi_register__NinjaTurtle_impl_66']?.()
__napiInstance.exports['__napi_register__JsAssets_struct_67']?.()
__napiInstance.exports['__napi_register__JsAssets_impl_70']?.()
__napiInstance.exports['__napi_register__JsAsset_struct_71']?.()
__napiInstance.exports['__napi_register__JsAsset_impl_74']?.()
__napiInstance.exports['__napi_register__Optional_struct_75']?.()
__napiInstance.exports['__napi_register__Optional_impl_80']?.()
__napiInstance.exports[
'__napi_register__ObjectFieldClassInstance_struct_81'
]?.()
__napiInstance.exports[
'__napi_register__create_object_with_class_field_82'
]?.()
__napiInstance.exports[
'__napi_register__receive_object_with_class_field_83'
]?.()
__napiInstance.exports['__napi_register__NotWritableClass_struct_84']?.()
__napiInstance.exports['__napi_register__NotWritableClass_impl_86']?.()
__napiInstance.exports['__napi_register__CustomFinalize_struct_87']?.()
__napiInstance.exports['__napi_register__CustomFinalize_impl_89']?.()
__napiInstance.exports['__napi_register__Width_struct_90']?.()
__napiInstance.exports['__napi_register__plus_one_91']?.()
__napiInstance.exports[
'__napi_register__GetterSetterWithClosures_struct_92'
]?.()
__napiInstance.exports[
'__napi_register__GetterSetterWithClosures_impl_94'
]?.()
__napiInstance.exports['__napi_register__CatchOnConstructor_struct_95']?.()
__napiInstance.exports['__napi_register__CatchOnConstructor_impl_97']?.()
__napiInstance.exports['__napi_register__CatchOnConstructor2_struct_98']?.()
__napiInstance.exports['__napi_register__CatchOnConstructor2_impl_100']?.()
__napiInstance.exports['__napi_register__ClassWithFactory_struct_101']?.()
__napiInstance.exports['__napi_register__ClassWithFactory_impl_106']?.()
__napiInstance.exports['__napi_register__Selector_struct_107']?.()
__napiInstance.exports['__napi_register__date_to_number_108']?.()
__napiInstance.exports['__napi_register__chrono_date_to_millis_109']?.()
__napiInstance.exports['__napi_register__chrono_date_add_1_minute_110']?.()
__napiInstance.exports['__napi_register__Dates_struct_111']?.()
__napiInstance.exports['__napi_register__chrono_native_date_time_112']?.()
__napiInstance.exports[
'__napi_register__chrono_native_date_time_return_113'
]?.()
__napiInstance.exports['__napi_register__either_string_or_number_114']?.()
__napiInstance.exports['__napi_register__return_either_115']?.()
__napiInstance.exports['__napi_register__either3_116']?.()
__napiInstance.exports['__napi_register__Obj_struct_117']?.()
__napiInstance.exports['__napi_register__either4_118']?.()
__napiInstance.exports['__napi_register__JsClassForEither_struct_119']?.()
__napiInstance.exports['__napi_register__JsClassForEither_impl_121']?.()
__napiInstance.exports[
'__napi_register__AnotherClassForEither_struct_122'
]?.()
__napiInstance.exports['__napi_register__AnotherClassForEither_impl_124']?.()
__napiInstance.exports['__napi_register__receive_class_or_number_125']?.()
__napiInstance.exports['__napi_register__receive_mut_class_or_number_126']?.()
__napiInstance.exports['__napi_register__receive_different_class_127']?.()
__napiInstance.exports['__napi_register__return_either_class_128']?.()
__napiInstance.exports['__napi_register__either_from_option_129']?.()
__napiInstance.exports['__napi_register__A_struct_130']?.()
__napiInstance.exports['__napi_register__B_struct_131']?.()
__napiInstance.exports['__napi_register__C_struct_132']?.()
__napiInstance.exports['__napi_register__either_from_objects_133']?.()
__napiInstance.exports['__napi_register__either_bool_or_function_134']?.()
__napiInstance.exports['__napi_register__promise_in_either_135']?.()
__napiInstance.exports['__napi_register__either_bool_or_tuple_136']?.()
__napiInstance.exports['__napi_register__Kind_137']?.()
__napiInstance.exports['__napi_register__Empty_138']?.()
__napiInstance.exports['__napi_register__Status_139']?.()
__napiInstance.exports['__napi_register__StringEnum_140']?.()
__napiInstance.exports['__napi_register__CustomNumEnum_141']?.()
__napiInstance.exports['__napi_register__enum_to_i32_142']?.()
__napiInstance.exports['__napi_register__SkippedEnums_143']?.()
__napiInstance.exports['__napi_register__run_script_144']?.()
__napiInstance.exports['__napi_register__get_module_file_name_145']?.()
__napiInstance.exports['__napi_register__throw_syntax_error_146']?.()
__napiInstance.exports['__napi_register__throw_error_147']?.()
__napiInstance.exports['__napi_register__panic_148']?.()
__napiInstance.exports['__napi_register__receive_string_149']?.()
__napiInstance.exports['__napi_register__custom_status_code_150']?.()
__napiInstance.exports['__napi_register__throw_async_error_151']?.()
__napiInstance.exports['__napi_register__create_external_152']?.()
__napiInstance.exports['__napi_register__create_external_string_153']?.()
__napiInstance.exports['__napi_register__get_external_154']?.()
__napiInstance.exports['__napi_register__mutate_external_155']?.()
__napiInstance.exports['__napi_register__validate_array_156']?.()
__napiInstance.exports['__napi_register__validate_buffer_157']?.()
__napiInstance.exports['__napi_register__validate_typed_array_158']?.()
__napiInstance.exports['__napi_register__validate_typed_array_slice_159']?.()
__napiInstance.exports[
'__napi_register__validate_uint8_clamped_slice_160'
]?.()
__napiInstance.exports['__napi_register__validate_buffer_slice_161']?.()
__napiInstance.exports['__napi_register__validate_bigint_162']?.()
__napiInstance.exports['__napi_register__validate_boolean_163']?.()
__napiInstance.exports['__napi_register__validate_date_164']?.()
__napiInstance.exports['__napi_register__validate_date_time_165']?.()
__napiInstance.exports['__napi_register__validate_external_166']?.()
__napiInstance.exports['__napi_register__validate_function_167']?.()
__napiInstance.exports['__napi_register__validate_hash_map_168']?.()
__napiInstance.exports['__napi_register__validate_null_169']?.()
__napiInstance.exports['__napi_register__validate_undefined_170']?.()
__napiInstance.exports['__napi_register__validate_number_171']?.()
__napiInstance.exports['__napi_register__validate_promise_172']?.()
__napiInstance.exports['__napi_register__validate_string_173']?.()
__napiInstance.exports['__napi_register__validate_symbol_174']?.()
__napiInstance.exports['__napi_register__validate_optional_175']?.()
__napiInstance.exports['__napi_register__return_undefined_if_invalid_176']?.()
__napiInstance.exports[
'__napi_register__return_undefined_if_invalid_promise_177'
]?.()
__napiInstance.exports['__napi_register__ts_rename_178']?.()
__napiInstance.exports[
'__napi_register__override_individual_arg_on_function_179'
]?.()
__napiInstance.exports[
'__napi_register__override_individual_arg_on_function_with_cb_arg_180'
]?.()
__napiInstance.exports['__napi_register__call0_181']?.()
__napiInstance.exports['__napi_register__call1_182']?.()
__napiInstance.exports['__napi_register__call2_183']?.()
__napiInstance.exports['__napi_register__apply0_184']?.()
__napiInstance.exports['__napi_register__apply1_185']?.()
__napiInstance.exports['__napi_register__call_function_186']?.()
__napiInstance.exports['__napi_register__call_function_with_arg_187']?.()
__napiInstance.exports[
'__napi_register__create_reference_on_function_188'
]?.()
__napiInstance.exports[
'__napi_register__call_function_with_arg_and_ctx_189'
]?.()
__napiInstance.exports['__napi_register__reference_as_callback_190']?.()
__napiInstance.exports[
'__napi_register__build_threadsafe_function_from_function_191'
]?.()
__napiInstance.exports['__napi_register__Fib_struct_192']?.()
__napiInstance.exports['__napi_register__Fib_impl_193']?.()
__napiInstance.exports['__napi_register__Fib_impl_195']?.()
__napiInstance.exports['__napi_register__Fib2_struct_196']?.()
__napiInstance.exports['__napi_register__Fib2_impl_197']?.()
__napiInstance.exports['__napi_register__Fib2_impl_199']?.()
__napiInstance.exports['__napi_register__Fib3_struct_200']?.()
__napiInstance.exports['__napi_register__Fib3_impl_201']?.()
__napiInstance.exports['__napi_register__ALIGNMENT_202']?.()
__napiInstance.exports['__napi_register__xxh64_203']?.()
__napiInstance.exports['__napi_register__xxh128_204']?.()
__napiInstance.exports['__napi_register__Xxh3_struct_205']?.()
__napiInstance.exports['__napi_register__Xxh3_impl_209']?.()
__napiInstance.exports['__napi_register__xxh2_plus_210']?.()
__napiInstance.exports['__napi_register__xxh3_xxh64_alias_211']?.()
__napiInstance.exports['__napi_register__xxh64_alias_212']?.()
__napiInstance.exports['__napi_register__get_mapping_213']?.()
__napiInstance.exports['__napi_register__sum_mapping_214']?.()
__napiInstance.exports['__napi_register__get_btree_mapping_215']?.()
__napiInstance.exports['__napi_register__sum_btree_mapping_216']?.()
__napiInstance.exports['__napi_register__get_index_mapping_217']?.()
__napiInstance.exports['__napi_register__sum_index_mapping_218']?.()
__napiInstance.exports['__napi_register__indexmap_passthrough_219']?.()
__napiInstance.exports['__napi_register__map_option_220']?.()
__napiInstance.exports['__napi_register__return_null_221']?.()
__napiInstance.exports['__napi_register__return_undefined_222']?.()
__napiInstance.exports['__napi_register__UseNullableStruct_struct_223']?.()
__napiInstance.exports['__napi_register__NotUseNullableStruct_struct_224']?.()
__napiInstance.exports[
'__napi_register__DefaultUseNullableStruct_struct_225'
]?.()
__napiInstance.exports['__napi_register__UseNullableClass_struct_226']?.()
__napiInstance.exports['__napi_register__NotUseNullableClass_struct_227']?.()
__napiInstance.exports[
'__napi_register__DefaultUseNullableClass_struct_228'
]?.()
__napiInstance.exports['__napi_register__add_229']?.()
__napiInstance.exports['__napi_register__fibonacci_230']?.()
__napiInstance.exports['__napi_register__list_obj_keys_231']?.()
__napiInstance.exports['__napi_register__create_obj_232']?.()
__napiInstance.exports['__napi_register__get_global_233']?.()
__napiInstance.exports['__napi_register__get_undefined_234']?.()
__napiInstance.exports['__napi_register__get_null_235']?.()
__napiInstance.exports['__napi_register__AllOptionalObject_struct_236']?.()
__napiInstance.exports['__napi_register__receive_all_optional_object_237']?.()
__napiInstance.exports['__napi_register__AliasedEnum_238']?.()
__napiInstance.exports[
'__napi_register__StructContainsAliasedEnum_struct_239'
]?.()
__napiInstance.exports['__napi_register__fn_received_aliased_240']?.()
__napiInstance.exports['__napi_register__StrictObject_struct_241']?.()
__napiInstance.exports['__napi_register__receive_strict_object_242']?.()
__napiInstance.exports['__napi_register__get_str_from_object_243']?.()
__napiInstance.exports['__napi_register__TsTypeChanged_struct_244']?.()
__napiInstance.exports['__napi_register__create_obj_with_property_245']?.()
__napiInstance.exports['__napi_register__getter_from_obj_246']?.()
__napiInstance.exports['__napi_register__ObjectOnlyFromJs_struct_247']?.()
__napiInstance.exports['__napi_register__receive_object_only_from_js_248']?.()
__napiInstance.exports[
'__napi_register__object_get_named_property_should_perform_typecheck_249'
]?.()
__napiInstance.exports['__napi_register__ObjectOnlyToJs_struct_250']?.()
__napiInstance.exports['__napi_register__return_object_only_to_js_251']?.()
__napiInstance.exports['__napi_register__async_plus_100_252']?.()
__napiInstance.exports['__napi_register__JsRepo_struct_253']?.()
__napiInstance.exports['__napi_register__JsRepo_impl_256']?.()
__napiInstance.exports['__napi_register__JsRemote_struct_257']?.()
__napiInstance.exports['__napi_register__JsRemote_impl_260']?.()
__napiInstance.exports['__napi_register__CSSRuleList_struct_261']?.()
__napiInstance.exports['__napi_register__CSSRuleList_impl_265']?.()
__napiInstance.exports['__napi_register__CSSStyleSheet_struct_266']?.()
__napiInstance.exports['__napi_register__AnotherCSSStyleSheet_struct_267']?.()
__napiInstance.exports['__napi_register__AnotherCSSStyleSheet_impl_269']?.()
__napiInstance.exports['__napi_register__CSSStyleSheet_impl_273']?.()
__napiInstance.exports['__napi_register__PackageJson_struct_274']?.()
__napiInstance.exports['__napi_register__read_package_json_275']?.()
__napiInstance.exports['__napi_register__get_package_json_name_276']?.()
__napiInstance.exports['__napi_register__test_serde_roundtrip_277']?.()
__napiInstance.exports[
'__napi_register__test_serde_big_number_precision_278'
]?.()
__napiInstance.exports['__napi_register__return_from_shared_crate_279']?.()
__napiInstance.exports['__napi_register__contains_280']?.()
__napiInstance.exports['__napi_register__concat_str_281']?.()
__napiInstance.exports['__napi_register__concat_utf16_282']?.()
__napiInstance.exports['__napi_register__concat_latin1_283']?.()
__napiInstance.exports['__napi_register__roundtrip_str_284']?.()
__napiInstance.exports['__napi_register__set_symbol_in_obj_285']?.()
__napiInstance.exports['__napi_register__create_symbol_286']?.()
__napiInstance.exports['__napi_register__create_symbol_for_287']?.()
__napiInstance.exports['__napi_register__DelaySum_impl_288']?.()
__napiInstance.exports['__napi_register__without_abort_controller_289']?.()
__napiInstance.exports['__napi_register__with_abort_controller_290']?.()
__napiInstance.exports['__napi_register__AsyncTaskVoidReturn_impl_291']?.()
__napiInstance.exports['__napi_register__async_task_void_return_292']?.()
__napiInstance.exports[
'__napi_register__AsyncTaskOptionalReturn_impl_293'
]?.()
__napiInstance.exports['__napi_register__async_task_optional_return_294']?.()
__napiInstance.exports['__napi_register__call_threadsafe_function_295']?.()
__napiInstance.exports[
'__napi_register__call_long_threadsafe_function_296'
]?.()
__napiInstance.exports[
'__napi_register__threadsafe_function_throw_error_297'
]?.()
__napiInstance.exports[
'__napi_register__threadsafe_function_fatal_mode_298'
]?.()
__napiInstance.exports[
'__napi_register__threadsafe_function_fatal_mode_error_299'
]?.()
__napiInstance.exports[
'__napi_register__threadsafe_function_closure_capture_300'
]?.()
__napiInstance.exports['__napi_register__tsfn_call_with_callback_301']?.()
__napiInstance.exports['__napi_register__tsfn_async_call_302']?.()
__napiInstance.exports['__napi_register__accept_threadsafe_function_303']?.()
__napiInstance.exports[
'__napi_register__accept_threadsafe_function_fatal_304'
]?.()
__napiInstance.exports[
'__napi_register__accept_threadsafe_function_tuple_args_305'
]?.()
__napiInstance.exports['__napi_register__tsfn_return_promise_306']?.()
__napiInstance.exports['__napi_register__tsfn_return_promise_timeout_307']?.()
__napiInstance.exports['__napi_register__tsfn_throw_from_js_308']?.()
__napiInstance.exports['__napi_register__get_buffer_309']?.()
__napiInstance.exports['__napi_register__append_buffer_310']?.()
__napiInstance.exports['__napi_register__get_empty_buffer_311']?.()
__napiInstance.exports['__napi_register__convert_u32_array_312']?.()
__napiInstance.exports['__napi_register__create_external_typed_array_313']?.()
__napiInstance.exports['__napi_register__mutate_typed_array_314']?.()
__napiInstance.exports['__napi_register__deref_uint8_array_315']?.()
__napiInstance.exports['__napi_register__buffer_pass_through_316']?.()
__napiInstance.exports['__napi_register__array_buffer_pass_through_317']?.()
__napiInstance.exports['__napi_register__accept_slice_318']?.()
__napiInstance.exports['__napi_register__u8_array_to_array_319']?.()
__napiInstance.exports['__napi_register__i8_array_to_array_320']?.()
__napiInstance.exports['__napi_register__u16_array_to_array_321']?.()
__napiInstance.exports['__napi_register__i16_array_to_array_322']?.()
__napiInstance.exports['__napi_register__u32_array_to_array_323']?.()
__napiInstance.exports['__napi_register__i32_array_to_array_324']?.()
__napiInstance.exports['__napi_register__f32_array_to_array_325']?.()
__napiInstance.exports['__napi_register__f64_array_to_array_326']?.()
__napiInstance.exports['__napi_register__u64_array_to_array_327']?.()
__napiInstance.exports['__napi_register__i64_array_to_array_328']?.()
__napiInstance.exports['__napi_register__accept_uint8_clamped_slice_329']?.()
__napiInstance.exports[
'__napi_register__accept_uint8_clamped_slice_and_buffer_slice_330'
]?.()
__napiInstance.exports['__napi_register__AsyncBuffer_impl_331']?.()
__napiInstance.exports['__napi_register__async_reduce_buffer_332']?.()
__napiInstance.exports['__napi_register__async_buffer_to_array_333']?.()
}
export const Animal = __napiModule.exports.Animal
export const AnimalWithDefaultConstructor =
__napiModule.exports.AnimalWithDefaultConstructor
export const AnotherClassForEither = __napiModule.exports.AnotherClassForEither
export const AnotherCssStyleSheet = __napiModule.exports.AnotherCssStyleSheet
export const AnotherCSSStyleSheet = __napiModule.exports.AnotherCSSStyleSheet
export const Asset = __napiModule.exports.Asset
export const JsAsset = __napiModule.exports.JsAsset
export const Assets = __napiModule.exports.Assets
export const JsAssets = __napiModule.exports.JsAssets
export const Bird = __napiModule.exports.Bird
export const Blake2BHasher = __napiModule.exports.Blake2BHasher
export const Blake2bHasher = __napiModule.exports.Blake2bHasher
export const Blake2BKey = __napiModule.exports.Blake2BKey
export const Blake2bKey = __napiModule.exports.Blake2bKey
export const CatchOnConstructor = __napiModule.exports.CatchOnConstructor
export const CatchOnConstructor2 = __napiModule.exports.CatchOnConstructor2
export const ClassWithFactory = __napiModule.exports.ClassWithFactory
export const Context = __napiModule.exports.Context
export const CssRuleList = __napiModule.exports.CssRuleList
export const CSSRuleList = __napiModule.exports.CSSRuleList
export const CssStyleSheet = __napiModule.exports.CssStyleSheet
export const CSSStyleSheet = __napiModule.exports.CSSStyleSheet
export const CustomFinalize = __napiModule.exports.CustomFinalize
export const DefaultUseNullableClass =
__napiModule.exports.DefaultUseNullableClass
export const Dog = __napiModule.exports.Dog
export const Fib = __napiModule.exports.Fib
export const Fib2 = __napiModule.exports.Fib2
export const Fib3 = __napiModule.exports.Fib3
export const GetterSetterWithClosures =
__napiModule.exports.GetterSetterWithClosures
export const JsClassForEither = __napiModule.exports.JsClassForEither
export const JsRemote = __napiModule.exports.JsRemote
export const JsRepo = __napiModule.exports.JsRepo
export const NinjaTurtle = __napiModule.exports.NinjaTurtle
export const NotUseNullableClass = __napiModule.exports.NotUseNullableClass
export const NotWritableClass = __napiModule.exports.NotWritableClass
export const Optional = __napiModule.exports.Optional
export const Selector = __napiModule.exports.Selector
export const UseNullableClass = __napiModule.exports.UseNullableClass
export const Width = __napiModule.exports.Width
export const acceptSlice = __napiModule.exports.acceptSlice
export const acceptThreadsafeFunction =
__napiModule.exports.acceptThreadsafeFunction
export const acceptThreadsafeFunctionFatal =
__napiModule.exports.acceptThreadsafeFunctionFatal
export const acceptThreadsafeFunctionTupleArgs =
__napiModule.exports.acceptThreadsafeFunctionTupleArgs
export const acceptUint8ClampedSlice =
__napiModule.exports.acceptUint8ClampedSlice
export const acceptUint8ClampedSliceAndBufferSlice =
__napiModule.exports.acceptUint8ClampedSliceAndBufferSlice
export const add = __napiModule.exports.add
export const ALIAS = __napiModule.exports.ALIAS
export const AliasedEnum = __napiModule.exports.AliasedEnum
export const appendBuffer = __napiModule.exports.appendBuffer
export const apply0 = __napiModule.exports.apply0
export const apply1 = __napiModule.exports.apply1
export const arrayBufferPassThrough =
__napiModule.exports.arrayBufferPassThrough
export const asyncBufferToArray = __napiModule.exports.asyncBufferToArray
export const asyncMultiTwo = __napiModule.exports.asyncMultiTwo
export const asyncPlus100 = __napiModule.exports.asyncPlus100
export const asyncReduceBuffer = __napiModule.exports.asyncReduceBuffer
export const asyncTaskOptionalReturn =
__napiModule.exports.asyncTaskOptionalReturn
export const asyncTaskVoidReturn = __napiModule.exports.asyncTaskVoidReturn
export const bigintAdd = __napiModule.exports.bigintAdd
export const bigintFromI128 = __napiModule.exports.bigintFromI128
export const bigintFromI64 = __napiModule.exports.bigintFromI64
export const bigintGetU64AsString = __napiModule.exports.bigintGetU64AsString
export const bufferPassThrough = __napiModule.exports.bufferPassThrough
export const buildThreadsafeFunctionFromFunction =
__napiModule.exports.buildThreadsafeFunctionFromFunction
export const call0 = __napiModule.exports.call0
export const call1 = __napiModule.exports.call1
export const call2 = __napiModule.exports.call2
export const callbackReturnPromise = __napiModule.exports.callbackReturnPromise
export const callbackReturnPromiseAndSpawn =
__napiModule.exports.callbackReturnPromiseAndSpawn
export const callFunction = __napiModule.exports.callFunction
export const callFunctionWithArg = __napiModule.exports.callFunctionWithArg
export const callFunctionWithArgAndCtx =
__napiModule.exports.callFunctionWithArgAndCtx
export const callLongThreadsafeFunction =
__napiModule.exports.callLongThreadsafeFunction
export const callThreadsafeFunction =
__napiModule.exports.callThreadsafeFunction
export const captureErrorInCallback =
__napiModule.exports.captureErrorInCallback
export const chronoDateAdd1Minute = __napiModule.exports.chronoDateAdd1Minute
export const chronoDateToMillis = __napiModule.exports.chronoDateToMillis
export const chronoNativeDateTime = __napiModule.exports.chronoNativeDateTime
export const chronoNativeDateTimeReturn =
__napiModule.exports.chronoNativeDateTimeReturn
export const concatLatin1 = __napiModule.exports.concatLatin1
export const concatStr = __napiModule.exports.concatStr
export const concatUtf16 = __napiModule.exports.concatUtf16
export const contains = __napiModule.exports.contains
export const convertU32Array = __napiModule.exports.convertU32Array
export const createBigInt = __napiModule.exports.createBigInt
export const createBigIntI64 = __napiModule.exports.createBigIntI64
export const createExternal = __napiModule.exports.createExternal
export const createExternalString = __napiModule.exports.createExternalString
export const createExternalTypedArray =
__napiModule.exports.createExternalTypedArray
export const createObj = __napiModule.exports.createObj
export const createObjectWithClassField =
__napiModule.exports.createObjectWithClassField
export const createObjWithProperty = __napiModule.exports.createObjWithProperty
export const createReferenceOnFunction =
__napiModule.exports.createReferenceOnFunction
export const createSymbol = __napiModule.exports.createSymbol
export const createSymbolFor = __napiModule.exports.createSymbolFor
export const CustomNumEnum = __napiModule.exports.CustomNumEnum
export const customStatusCode = __napiModule.exports.customStatusCode
export const dateToNumber = __napiModule.exports.dateToNumber
export const DEFAULT_COST = __napiModule.exports.DEFAULT_COST
export const derefUint8Array = __napiModule.exports.derefUint8Array
export const either3 = __napiModule.exports.either3
export const either4 = __napiModule.exports.either4
export const eitherBoolOrFunction = __napiModule.exports.eitherBoolOrFunction
export const eitherBoolOrTuple = __napiModule.exports.eitherBoolOrTuple
export const eitherFromObjects = __napiModule.exports.eitherFromObjects
export const eitherFromOption = __napiModule.exports.eitherFromOption
export const eitherStringOrNumber = __napiModule.exports.eitherStringOrNumber
export const Empty = __napiModule.exports.Empty
export const enumToI32 = __napiModule.exports.enumToI32
export const f32ArrayToArray = __napiModule.exports.f32ArrayToArray
export const f64ArrayToArray = __napiModule.exports.f64ArrayToArray
export const fibonacci = __napiModule.exports.fibonacci
export const fnReceivedAliased = __napiModule.exports.fnReceivedAliased
export const getBtreeMapping = __napiModule.exports.getBtreeMapping
export const getBuffer = __napiModule.exports.getBuffer
export const getCwd = __napiModule.exports.getCwd
export const getEmptyBuffer = __napiModule.exports.getEmptyBuffer
export const getExternal = __napiModule.exports.getExternal
export const getGlobal = __napiModule.exports.getGlobal
export const getIndexMapping = __napiModule.exports.getIndexMapping
export const getMapping = __napiModule.exports.getMapping
export const getModuleFileName = __napiModule.exports.getModuleFileName
export const getNestedNumArr = __napiModule.exports.getNestedNumArr
export const getNull = __napiModule.exports.getNull
export const getNumArr = __napiModule.exports.getNumArr
export const getNums = __napiModule.exports.getNums
export const getPackageJsonName = __napiModule.exports.getPackageJsonName
export const getStrFromObject = __napiModule.exports.getStrFromObject
export const getterFromObj = __napiModule.exports.getterFromObj
export const getUndefined = __napiModule.exports.getUndefined
export const getWords = __napiModule.exports.getWords
export const i16ArrayToArray = __napiModule.exports.i16ArrayToArray
export const i32ArrayToArray = __napiModule.exports.i32ArrayToArray
export const i64ArrayToArray = __napiModule.exports.i64ArrayToArray
export const i8ArrayToArray = __napiModule.exports.i8ArrayToArray
export const indexmapPassthrough = __napiModule.exports.indexmapPassthrough
export const Kind = __napiModule.exports.Kind
export const listObjKeys = __napiModule.exports.listObjKeys
export const mapOption = __napiModule.exports.mapOption
export const mutateExternal = __napiModule.exports.mutateExternal
export const mutateTypedArray = __napiModule.exports.mutateTypedArray
export const objectGetNamedPropertyShouldPerformTypecheck =
__napiModule.exports.objectGetNamedPropertyShouldPerformTypecheck
export const optionEnd = __napiModule.exports.optionEnd
export const optionOnly = __napiModule.exports.optionOnly
export const optionStart = __napiModule.exports.optionStart
export const optionStartEnd = __napiModule.exports.optionStartEnd
export const overrideIndividualArgOnFunction =
__napiModule.exports.overrideIndividualArgOnFunction
export const overrideIndividualArgOnFunctionWithCbArg =
__napiModule.exports.overrideIndividualArgOnFunctionWithCbArg
export const panic = __napiModule.exports.panic
export const plusOne = __napiModule.exports.plusOne
export const promiseInEither = __napiModule.exports.promiseInEither
export const readFile = __napiModule.exports.readFile
export const readFileAsync = __napiModule.exports.readFileAsync
export const readPackageJson = __napiModule.exports.readPackageJson
export const receiveAllOptionalObject =
__napiModule.exports.receiveAllOptionalObject
export const receiveClassOrNumber = __napiModule.exports.receiveClassOrNumber
export const receiveDifferentClass = __napiModule.exports.receiveDifferentClass
export const receiveMutClassOrNumber =
__napiModule.exports.receiveMutClassOrNumber
export const receiveObjectOnlyFromJs =
__napiModule.exports.receiveObjectOnlyFromJs
export const receiveObjectWithClassField =
__napiModule.exports.receiveObjectWithClassField
export const receiveStrictObject = __napiModule.exports.receiveStrictObject
export const receiveString = __napiModule.exports.receiveString
export const referenceAsCallback = __napiModule.exports.referenceAsCallback
export const returnEither = __napiModule.exports.returnEither
export const returnEitherClass = __napiModule.exports.returnEitherClass
export const returnFromSharedCrate = __napiModule.exports.returnFromSharedCrate
export const returnJsFunction = __napiModule.exports.returnJsFunction
export const returnNull = __napiModule.exports.returnNull
export const returnObjectOnlyToJs = __napiModule.exports.returnObjectOnlyToJs
export const returnUndefined = __napiModule.exports.returnUndefined
export const returnUndefinedIfInvalid =
__napiModule.exports.returnUndefinedIfInvalid
export const returnUndefinedIfInvalidPromise =
__napiModule.exports.returnUndefinedIfInvalidPromise
export const roundtripStr = __napiModule.exports.roundtripStr
export const runScript = __napiModule.exports.runScript
export const setSymbolInObj = __napiModule.exports.setSymbolInObj
export const Status = __napiModule.exports.Status
export const StringEnum = __napiModule.exports.StringEnum
export const sumBtreeMapping = __napiModule.exports.sumBtreeMapping
export const sumIndexMapping = __napiModule.exports.sumIndexMapping
export const sumMapping = __napiModule.exports.sumMapping
export const sumNums = __napiModule.exports.sumNums
export const testSerdeBigNumberPrecision =
__napiModule.exports.testSerdeBigNumberPrecision
export const testSerdeRoundtrip = __napiModule.exports.testSerdeRoundtrip
export const threadsafeFunctionClosureCapture =
__napiModule.exports.threadsafeFunctionClosureCapture
export const threadsafeFunctionFatalMode =
__napiModule.exports.threadsafeFunctionFatalMode
export const threadsafeFunctionFatalModeError =
__napiModule.exports.threadsafeFunctionFatalModeError
export const threadsafeFunctionThrowError =
__napiModule.exports.threadsafeFunctionThrowError
export const throwAsyncError = __napiModule.exports.throwAsyncError
export const throwError = __napiModule.exports.throwError
export const throwSyntaxError = __napiModule.exports.throwSyntaxError
export const toJsObj = __napiModule.exports.toJsObj
export const tsfnAsyncCall = __napiModule.exports.tsfnAsyncCall
export const tsfnCallWithCallback = __napiModule.exports.tsfnCallWithCallback
export const tsfnReturnPromise = __napiModule.exports.tsfnReturnPromise
export const tsfnReturnPromiseTimeout =
__napiModule.exports.tsfnReturnPromiseTimeout
export const tsfnThrowFromJs = __napiModule.exports.tsfnThrowFromJs
export const tsRename = __napiModule.exports.tsRename
export const u16ArrayToArray = __napiModule.exports.u16ArrayToArray
export const u32ArrayToArray = __napiModule.exports.u32ArrayToArray
export const u64ArrayToArray = __napiModule.exports.u64ArrayToArray
export const u8ArrayToArray = __napiModule.exports.u8ArrayToArray
export const validateArray = __napiModule.exports.validateArray
export const validateBigint = __napiModule.exports.validateBigint
export const validateBoolean = __napiModule.exports.validateBoolean
export const validateBuffer = __napiModule.exports.validateBuffer
export const validateBufferSlice = __napiModule.exports.validateBufferSlice
export const validateDate = __napiModule.exports.validateDate
export const validateDateTime = __napiModule.exports.validateDateTime
export const validateExternal = __napiModule.exports.validateExternal
export const validateFunction = __napiModule.exports.validateFunction
export const validateHashMap = __napiModule.exports.validateHashMap
export const validateNull = __napiModule.exports.validateNull
export const validateNumber = __napiModule.exports.validateNumber
export const validateOptional = __napiModule.exports.validateOptional
export const validatePromise = __napiModule.exports.validatePromise
export const validateString = __napiModule.exports.validateString
export const validateSymbol = __napiModule.exports.validateSymbol
export const validateTypedArray = __napiModule.exports.validateTypedArray
export const validateTypedArraySlice =
__napiModule.exports.validateTypedArraySlice
export const validateUint8ClampedSlice =
__napiModule.exports.validateUint8ClampedSlice
export const validateUndefined = __napiModule.exports.validateUndefined
export const withAbortController = __napiModule.exports.withAbortController
export const withoutAbortController =
__napiModule.exports.withoutAbortController
export const xxh64Alias = __napiModule.exports.xxh64Alias
export const xxh2 = __napiModule.exports.xxh2
export const xxh3 = __napiModule.exports.xxh3