missing options in types
albanm opened this issue · 5 comments
albanm commented
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the bug has not already been reported
Fastify version
5.5.0
Plugin version
No response
Node.js version
18
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
whatever
Description
The documentation references option largeArrayMechanism and largeArraySize but they are missing from the Option type in types/index.d.ts and therefore cannot be used from typescript code.
Steps to Reproduce
in typescript:
import fastJsonStringify from 'fast-json-stringify';
fastJsonStringify(responseSchema, { largeArrayMechanism: 'json-stringify', largeArraySize: 1000 });
Expected Behavior
No response
Uzlopak commented
They exist?!
fast-json-stringify/types/index.d.ts
Line 182 in d8e22cd
albanm commented
Well that is weird I just made an npm install and they are not here.
$ cat node_modules/fast-json-stringify/package.json | grep version
"version": "5.5.0",
$ cat node_modules/fast-json-stringify/types/index.d.ts | grep largeArraySize
$
albanm commented
mcollina commented
Done