@@ -733,13 +733,13 @@ napiVersion: 8
733733-->
734734
735735A 128-bit value stored as two unsigned 64-bit integers. It serves as a UUID
736- with which JavaScript objects can be "tagged" in order to ensure that they are
737- of a certain type. This is a stronger check than [`napi_instanceof`][], because
738- the latter can report a false positive if the object's prototype has been
739- manipulated. Type-tagging is most useful in conjunction with [`napi_wrap`][]
740- because it ensures that the pointer retrieved from a wrapped object can be
741- safely cast to the native type corresponding to the type tag that had been
742- previously applied to the JavaScript object.
736+ with which JavaScript objects or [externals][] can be "tagged" in order to
737+ ensure that they are of a certain type. This is a stronger check than
738+ [`napi_instanceof`][], because the latter can report a false positive if the
739+ object's prototype has been manipulated. Type-tagging is most useful in
740+ conjunction with [`napi_wrap`][] because it ensures that the pointer retrieved
741+ from a wrapped object can be safely cast to the native type corresponding to the
742+ type tag that had been previously applied to the JavaScript object.
743743
744744```c
745745typedef struct {
@@ -4967,7 +4967,7 @@ To this end, Node-API provides type-tagging capabilities.
49674967
49684968A type tag is a 128-bit integer unique to the addon. Node-API provides the
49694969`napi_type_tag` structure for storing a type tag. When such a value is passed
4970- along with a JavaScript object stored in a `napi_value` to
4970+ along with a JavaScript object or [external][] stored in a `napi_value` to
49714971`napi_type_tag_object()`, the JavaScript object will be "marked" with the
49724972type tag. The "mark" is invisible on the JavaScript side. When a JavaScript
49734973object arrives into a native binding, `napi_check_object_type_tag()` can be used
@@ -5253,15 +5253,15 @@ napi_status napi_type_tag_object(napi_env env,
52535253```
52545254
52555255* `[in] env`: The environment that the API is invoked under.
5256- * `[in] js_object`: The JavaScript object to be marked.
5256+ * `[in] js_object`: The JavaScript object or [external][] to be marked.
52575257* `[in] type_tag`: The tag with which the object is to be marked.
52585258
52595259Returns `napi_ok` if the API succeeded.
52605260
5261- Associates the value of the `type_tag` pointer with the JavaScript object.
5262- `napi_check_object_type_tag()` can then be used to compare the tag that was
5263- attached to the object with one owned by the addon to ensure that the object
5264- has the right type.
5261+ Associates the value of the `type_tag` pointer with the JavaScript object or
5262+ [external][]. `napi_check_object_type_tag()` can then be used to compare the tag
5263+ that was attached to the object with one owned by the addon to ensure that the
5264+ object has the right type.
52655265
52665266If the object already has an associated type tag, this API will return
52675267`napi_invalid_arg`.
@@ -5283,7 +5283,8 @@ napi_status napi_check_object_type_tag(napi_env env,
52835283```
52845284
52855285* `[in] env`: The environment that the API is invoked under.
5286- * `[in] js_object`: The JavaScript object whose type tag to examine.
5286+ * `[in] js_object`: The JavaScript object or [external][] whose type tag to
5287+ examine.
52875288* `[in] type_tag`: The tag with which to compare any tag found on the object.
52885289* `[out] result`: Whether the type tag given matched the type tag on the
52895290 object. `false` is also returned if no type tag was found on the object.
@@ -6453,6 +6454,8 @@ the add-on's file name during loading.
64536454[async_hooks `type`]: async_hooks.md#type
64546455[context-aware addons]: addons.md#context-aware-addons
64556456[docs]: https://github.com/nodejs/node-addon-api#api-documentation
6457+ [external]: #napi_create_external
6458+ [externals]: #napi_create_external
64566459[global scope]: globals.md
64576460[gyp-next]: https://github.com/nodejs/gyp-next
64586461[module scope]: modules.md#the-module-scope