Skip to content

Commit d568952

Browse files
Gabriel Schulhoftargos
Gabriel Schulhof
authored andcommitted
doc: fix missing napi_get_typedarray_info() param
Also, make the type name notation more consistent. PR-URL: #20631 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent 8604481 commit d568952

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/n-api.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1697,8 +1697,9 @@ napi_status napi_get_typedarray_info(napi_env env,
16971697
- `[in] typedarray`: `napi_value` representing the `TypedArray` whose
16981698
properties to query.
16991699
- `[out] type`: Scalar datatype of the elements within the `TypedArray`.
1700-
- `[out] length`: `Number` of elements in the `TypedArray`.
1701-
- `[out] data`: The data buffer underlying the typed array.
1700+
- `[out] length`: The number of elements in the `TypedArray`.
1701+
- `[out] data`: The data buffer underlying the `TypedArray`.
1702+
- `[out] arraybuffer`: The `ArrayBuffer` underlying the `TypedArray`.
17021703
- `[out] byte_offset`: The byte offset within the data buffer from which
17031704
to start projecting the `TypedArray`.
17041705

0 commit comments

Comments
 (0)