smithy-types-override
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

smithy-types-override

NPM Version

If you have multiple versions of @smithy/types in your dependencies, it may break type checking.

To fix type checking:

  1. Install this package
npm install --save-dev smithy-types-override
  1. Update your package.json to use package overrides
{
  "overrides": {
    "dependency": {
      "smithy-types-override": "$@smithy/types"
    }
  }
}
  1. Update your imports to use the overridden file
import type { NodeJsClient, BrowserClient } from "smithy-types-override";
  1. ???

  2. Profit

Your types will now always be imported from the latest version of @smithy/types and you can avoid type errors 🎉

The permanent solution would be for all of your dependencies to use the same and latest version of @smithy/types, which may never happen.

Readme

Keywords

none

Package Sidebar

Install

npm i smithy-types-override

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

2.95 kB

Total Files

6

Last publish

Collaborators

  • jlarmstrongiv