Not working with current version of typescript
Closed this issue · 3 comments
blue112 commented
Hi !
The index.d.ts seems outdated : could you remove it from the repository ?
blue112 commented
Sure, if you can fix it that's even better. Here are the errors using typescript ^3.5 :
node_modules/fastify-oas/lib/index.d.ts:57:22 - error TS2709: Cannot use namespace 'SecurityRequirementObject' as a type.
57 security?: Array<SecurityRequirementObject>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/fastify-oas/lib/index.d.ts:67:12 - error TS2709: Cannot use namespace 'InfoObject' as a type.
67 info?: InfoObject | Info;
~~~~~~~~~~
node_modules/fastify-oas/lib/index.d.ts:68:20 - error TS2709: Cannot use namespace 'ExternalDocumentationObject' as a type.
68 externalDocs?: ExternalDocumentationObject | ExternalDocs;
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/fastify-oas/lib/index.d.ts:72:15 - error TS2709: Cannot use namespace 'SchemasObject' as a type.
72 schemes?: SchemasObject | Array<String>;
~~~~~~~~~~~~~
node_modules/fastify-oas/lib/index.d.ts:76:15 - error TS2709: Cannot use namespace 'SecurityRequirementObject' as a type.
76 | Array<SecurityRequirementObject>
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/fastify-oas/lib/index.d.ts:78:21 - error TS2709: Cannot use namespace 'Server' as a type.
78 servers?: Array<Server>;
~~~~~~
node_modules/fastify-oas/lib/index.d.ts:79:18 - error TS2709: Cannot use namespace 'ComponentsObject' as a type.
79 components?: ComponentsObject;
~~~~~~~~~~~~~~~~
node_modules/fastify-oas/lib/index.d.ts:83:18 - error TS2709: Cannot use namespace 'TagObject' as a type.
83 tags?: Array<TagObject> | Array<Tag>;
~~~~~~~~~
SkeLLLa commented
Closing due to inactivity. Feel free to reopen or submit PR if it's still relevant.