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
Typescript with "moduleResolution": "node16" will generate an error when trying to import the module from a cjs file.
Could not find a declaration file for module 'openapi-typescript'. '/node_modules/openapi-typescript/dist/index.cjs' implicitly has an 'any' type.
Try `npm i --save-dev @types/openapi-typescript` if it exists or add a new declaration (.d.ts) file containing `declare module 'openapi-typescript';`ts(7016)
This depends on what the maintainers are attempting to achieve though the TS config is incorrect. The post above is mostly correct though there's no need to define the same types for require vs export as that will be handled by TypeScript.
This "./*": "./*" is allowing the package user to access any file within the project in a import/require and is likely intentional
Description
Typescript with
"moduleResolution": "node16"
will generate an error when trying to import the module from a cjs file.openapi-typescript
7.4.4
22.9.0
Reproduction
Check here : https://arethetypeswrong.github.io/?p=openapi-typescript%407.4.4
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: