azure-functions-nodejs-openapi
azure-functions-nodejs-openapi copied to clipboard
error TS2344: Type 'T' does not satisfy the constraint '{}'.
Hi, I'm encountering this error trying to compile my project with version 0.4.0 of your package, with TypeScript Version 4.9.5 and strict mode on.
node_modules/openapi-types/dist/index.d.ts:16:28 - error TS2344: Type 'T' does not satisfy the constraint '{}'.
16 paths: PathsObject<T>;
~
node_modules/openapi-types/dist/index.d.ts:15:34
15 type PathsWebhooksComponents<T> = {
~
This type parameter might need an `extends {}` constraint.
As a work-around I was able to override the version selection of openapi-types in my packages.json:
"overrides": {
"openapi-types": "^12.1.0"
},
my suggestion is to update the published version of the packages.json file to depend on a newer version on that library.