Skip to content

Commit

Permalink
doc: update class hierarchy for TypeTaggable
Browse files Browse the repository at this point in the history
Reflect in the class hierarchy that `Napi::TypeTaggable` was injected
between `Napi::Object` and `Napi:External`, and their parent class,
`Napi::Value`.

PR-URL: #1303
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com
  • Loading branch information
gabrielschulhof committed Mar 31, 2023
1 parent d013044 commit 164459c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/hierarchy.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
| [`Napi::Env`][] | |
| [`Napi::Error`][] | [`Napi::ObjectReference`][], [`std::exception`][] |
| [`Napi::EscapableHandleScope`][] | |
| [`Napi::External`][] | [`Napi::Value`][] |
| [`Napi::External`][] | [`Napi::TypeTaggable`][] |
| [`Napi::Function`][] | [`Napi::Object`][] |
| [`Napi::FunctionReference`][] | [`Napi::Reference<Napi::Function>`][] |
| [`Napi::HandleScope`][] | |
| [`Napi::InstanceWrap`][] | |
| [`Napi::MemoryManagement`][] | |
| [`Napi::Name`][] | [`Napi::Value`][] |
| [`Napi::Number`][] | [`Napi::Value`][] |
| [`Napi::Object`][] | [`Napi::Value`][] |
| [`Napi::Object`][] | [`Napi::TypeTaggable`][] |
| [`Napi::ObjectReference`][] | [`Napi::Reference<Napi::Object>`][] |
| [`Napi::ObjectWrap`][] | [`Napi::InstanceWrap`][], [`Napi::Reference<Napi::Object>`][] |
| [`Napi::Promise`][] | [`Napi::Object`][] |
Expand All @@ -38,6 +38,7 @@
| [`Napi::String`][] | [`Napi::Name`][] |
| [`Napi::Symbol`][] | [`Napi::Name`][] |
| [`Napi::ThreadSafeFunction`][] | |
| [`Napi::TypeTaggable`][] | [`Napi::Value][] |
| [`Napi::TypeError`][] | [`Napi::Error`][] |
| [`Napi::TypedArray`][] | [`Napi::Object`][] |
| [`Napi::TypedArrayOf`][] | [`Napi::TypedArray`][] |
Expand Down Expand Up @@ -83,6 +84,7 @@
[`Napi::Symbol`]: ./symbol.md
[`Napi::ThreadSafeFunction`]: ./threadsafe_function.md
[`Napi::TypeError`]: ./type_error.md
[`Napi::TypeTaggable`]: ./type_taggable.md
[`Napi::TypedArray`]: ./typed_array.md
[`Napi::TypedArrayOf`]: ./typed_array_of.md
[`Napi::Uint8Array`]: ./typed_array_of.md
Expand Down
2 changes: 2 additions & 0 deletions doc/type_taggable.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ return value is `false`. If a tag is found and it matches `type_tag`, then the
return value is `true`.

[`Napi::Value`]: ./value.md
[`Napi::Object`]: ./object.md
[`Napi::External`]: ./external.md

0 comments on commit 164459c

Please sign in to comment.