Skip to content

Commit e19496d

Browse files
hkleungaiaduh95
authored andcommitted
doc: add missing options.info for BrotliOptions
Source code of `function Brotli()` calls ctor of parent `ZlibBase` via `ReflectApply()` By inspecting `opts` in `ZlibBase` ctor, we can see `opts?.info` is further used to determine the return shapes of `*Sync()` methods in children class. This information will need to be revealed in nodejs doc. This PR is separated from the one for `ZstdOptions`, since these two changes potentially need to be backported to different minimum versions. PR-URL: #58359 Reviewed-By: Antoine du Hamel <[email protected]>
1 parent eb143e9 commit e19496d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/zlib.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ Each Brotli-based class takes an `options` object. All options are optional.
831831
* `params` {Object} Key-value object containing indexed [Brotli parameters][].
832832
* `maxOutputLength` {integer} Limits output size when using
833833
[convenience methods][]. **Default:** [`buffer.kMaxLength`][]
834+
* `info` {boolean} If `true`, returns an object with `buffer` and `engine`. **Default:** `false`
834835

835836
For example:
836837

0 commit comments

Comments
 (0)