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
Building with Typescript on a project that doesn't already use sinon throws this error:
node_modules/aws-sdk-client-mock/dist/types/awsClientStub.d.ts:2:41 - error TS7016: Could not find a declaration file for module 'sinon'. '<my-project>/node_modules/sinon/lib/sinon.js' implicitly has an 'any' type.
Try `npm install @types/sinon` if it exists or add a new declaration (.d.ts) file containing `declare module 'sinon';`
2 import { SinonSpyCall, SinonStub } from 'sinon';
~~~~~~~
The Typescript handbook recommends that any exported type that has a dependency on a package should be in the dependencies rather than devDependencies. Moving @types/sinon to the dependencies would solve this issue.
The text was updated successfully, but these errors were encountered:
Building with Typescript on a project that doesn't already use sinon throws this error:
The Typescript handbook recommends that any exported type that has a dependency on a package should be in the
dependencies
rather thandevDependencies
. Moving@types/sinon
to thedependencies
would solve this issue.The text was updated successfully, but these errors were encountered: