Skip to content

Commit fdae5a3

Browse files
committed
describes the options of Encoder and Decoder
1 parent 533207e commit fdae5a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ This function is available since v2.4.0; previously it was called as `decodeStre
233233

234234
### Reusing Encoder and Decoder instances
235235

236-
`Encoder` and `Decoder` classes is provided to have better performance by reusing instances:
236+
`Encoder` and `Decoder` classes are provided to have better performance by reusing instances:
237237

238238
```typescript
239239
import { deepStrictEqual } from "assert";
@@ -251,6 +251,8 @@ than `encode()` function, and reusing `Decoder` instance is about 2% faster
251251
than `decode()` function. Note that the result should vary in environments
252252
and data structure.
253253

254+
`Encoder` and `Decoder` take the same options as `encode()` and `decode()` respectively.
255+
254256
## Extension Types
255257

256258
To handle [MessagePack Extension Types](https://github.com/msgpack/msgpack/blob/master/spec.md#extension-types), this library provides `ExtensionCodec` class.

0 commit comments

Comments
 (0)