You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`[in] object`: The object that will receive the new properties.
*`[in] properties`: Initializer list of property descriptors of the methods,
property accessors, and values to attach to `object`.
See: [`Class property and descriptor`](class_property_descriptor.md).
Returns `object`.
For some rough stats, it seems to be split almost evenly... Searching for ### .+\n+``` (ie. definition first) gives 208 results, while ### .+\n+\w (ie. description first) gives 219 results.
Do we have a preference? Does it matter?
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.
Personally, I would prefer having documentation above the definition specifically because having a context on what you are reading makes it easier to understand and analyze.
Some documented methods have the C++ definition before the description:
node-addon-api/doc/env.md
Lines 87 to 104 in b8525e2
... while others have the description before the C++ definition:
node-addon-api/doc/addon.md
Lines 144 to 161 in b8525e2
For some rough stats, it seems to be split almost evenly... Searching for
### .+\n+```
(ie. definition first) gives 208 results, while### .+\n+\w
(ie. description first) gives 219 results.Do we have a preference? Does it matter?
The text was updated successfully, but these errors were encountered: