You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the bug has not already been reported
Fastify version
N/A
Plugin version
"env-schema": "^3.5",
Node.js version
14
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
N/A
Description
Following error when using customOptions:
TS2322: Type '{ customOptions(ajvInstance: any): any; }' is not assignable to type 'Ajv'. Object literal may only specify known properties, and 'customOptions' does not exist in type 'Ajv'
Because it's not in the types.
Steps to Reproduce
Just use customOptions in a TS file
Expected Behavior
Typings know about this extra feature, so there are no TS errors
The text was updated successfully, but these errors were encountered:
@Eomm , I can take a look yes, but I never have written unit tests that specifically are testing types, but I assume I will find some in here to compare how to do that.
sniperwolf
added a commit
to sniperwolf/env-schema
that referenced
this issue
Dec 19, 2021
Prerequisites
Fastify version
N/A
Plugin version
Node.js version
14
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
N/A
Description
Following error when using
customOptions
:Because it's not in the types.
Steps to Reproduce
Just use
customOptions
in a TS fileExpected Behavior
Typings know about this extra feature, so there are no TS errors
The text was updated successfully, but these errors were encountered: