-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type error when using example with Typescript #102
Comments
I have the same issue - as a workaround, you can use the const addressSchema: AllowedSchema = { |
@grawtar @olivierbeaulieu A couple of things will help me investigate this:
This issue is likely related to #39. |
I'm using And here's my config:
|
@olivierbeaulieu Thank you! After some discussion on Twitter I've learnt from @i-like-robots that your approach of using the const addressSchema: AllowedSchema = { I'm going to update the TypeScript part of the README to recommend this instead of |
I've tried the library and it works perfectly with normal js, but throws type errors when using ts.
The type error occurs at
addressSchema
when passing it tobody
. Is there something I missed?The text was updated successfully, but these errors were encountered: