From 57bb424524edd192645634542005be84e160d29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Tue, 16 Mar 2021 14:11:52 +0100 Subject: [PATCH] doc: sync Object::Set value arg with Value::From --- doc/object.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/doc/object.md b/doc/object.md index 3ce7f75eb..66f5bf7e5 100644 --- a/doc/object.md +++ b/doc/object.md @@ -86,13 +86,7 @@ The key can be any of the following types: - `const std::string&` - `uint32_t` -While the value must be any of the following types: -- `napi_value` -- [`Napi::Value`](value.md) -- `const char*` -- `std::string&` -- `bool` -- `double` +The `value` can be of any type that is accepted by [`Napi::Value::From`][]. ### Delete() @@ -271,3 +265,4 @@ Napi::Value Napi::Object::operator[] (uint32_t index) const; Returns an indexed property or array element as a [`Napi::Value`](value.md). [`Napi::Value`]: ./value.md +[`Napi::Value::From`]: ./value.md#from