JamesRobertWiseman / zaid-ts

1 stars 0 forks source link

Unsafe assignment of `any` value #1

Open grantvine-sc opened 11 months ago

grantvine-sc commented 11 months ago

I appear to get an issue in a create-t3-app configuration (out of box) with this library, issue is as follows:

image

Unsafe assignment of an `any` value.eslint[@typescript-eslint/no-unsafe-assignment](https://typescript-eslint.io/rules/no-unsafe-assignment)
Unsafe call of an `any` typed value.eslint[@typescript-eslint/no-unsafe-call](https://typescript-eslint.io/rules/no-unsafe-call)

I have managed to resolve the error by adjusting my import statement to:

import { isValid as isZAIDNumber } from "zaid-ts/dist/index";

If anyone else has similar issues, possibly an adjustment to package exports is what fixes this properly but I don't have that answer offhand ;)

JamesRobertWiseman commented 11 months ago

Can you share your code that is using this?