Skip to content

Commit 6490b1f

Browse files
authored
doc: sync Object::Set value arg with Value::From (#933)
1 parent 7319a0d commit 6490b1f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

doc/object.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,7 @@ The key can be any of the following types:
8686
- `const std::string&`
8787
- `uint32_t`
8888
89-
While the value must be any of the following types:
90-
- `napi_value`
91-
- [`Napi::Value`](value.md)
92-
- `const char*`
93-
- `std::string&`
94-
- `bool`
95-
- `double`
89+
The `value` can be of any type that is accepted by [`Napi::Value::From`][].
9690
9791
### Delete()
9892
@@ -271,3 +265,4 @@ Napi::Value Napi::Object::operator[] (uint32_t index) const;
271265
Returns an indexed property or array element as a [`Napi::Value`](value.md).
272266

273267
[`Napi::Value`]: ./value.md
268+
[`Napi::Value::From`]: ./value.md#from

0 commit comments

Comments
 (0)