doc: fix missing napi_get_typedarray_info() param

Also, make the type name notation more consistent.

PR-URL: https://github.com/nodejs/node/pull/20631
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
Gabriel Schulhof committed 2018-05-09 13:44:50 -04:00
1 parent facb2c53c2
commit 06dc96fa7c
1 file changed
+3 -2
+3 -2
View File
@@ -1697,8 +1697,9 @@ napi_status napi_get_typedarray_info(napi_env env,
- `[in] typedarray`: `napi_value` representing the `TypedArray` whose
properties to query.
- `[out] type`: Scalar datatype of the elements within the `TypedArray`.
- `[out] length`: `Number` of elements in the `TypedArray`.
- `[out] data`: The data buffer underlying the typed array.
- `[out] length`: The number of elements in the `TypedArray`.
- `[out] data`: The data buffer underlying the `TypedArray`.
- `[out] arraybuffer`: The `ArrayBuffer` underlying the `TypedArray`.
- `[out] byte_offset`: The byte offset within the data buffer from which
to start projecting the `TypedArray`.