-
Notifications
You must be signed in to change notification settings - Fork 50
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
ts-ignore on import in selection-types.ts #544
Conversation
This needs to be added otherwise I have to disable `noImplicitAny` in my tsconfig.json which can hide other errors
build step failed with @ts-expect-error
I get the below error from a typescript project with
Adding However, if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you enable skipLibCheck
in your config? Wouldn't that ignore type errors in the library?
If we want to make a change here, I would suggest that we enable noImplicitAny
to check everything and avoid potential regressions and instead of ts-ignore, should we add the missing declarations?
We weren't sure about the scope of I think changing |
I see. I'm okay with moving to .d.ts files for everything but iirc there was some reason @jheer used ts files. Id love to have a setup that lets is gradually transition to ts. If you could make a proposal that would be awesome. Happy to merge this pull request if it's a stopgap but you would probably need a release, no? |
Yes, we would need a release. But we can wait for @jheer's response on whether changing |
If you can, go ahead and try. |
Yes, we'd like to contribute TS support. Is there a plan on a direction for TS support? like adding type definitions ( |
Let's see if this works
Changing |
Support supportive of going ts but we want to make sure it's done in a way where we don't need to re-compile a sub-project to get the updates in another. Ideally, we figure out some way to do gradual transitions, that would be best and then send follow up PRs to change individual models. Related: #312 |
I need to understand the issue better. Right now the setup is to primarily use JavaScript ( I think what's missing (relative to what I've done in other projects like Arquero and Flechette), is then use both of these as input to So why don't we do that instead, and see if it resolves import issues? |
@jheer That sounds like the ideal solution given that that will produce the correct output in the built package rather than using a declaration file in the source code. To give you some more context, our build pipeline runs |
Like this #545? |
I believe so! |
Should be fixed by #545. |
This needs to be added otherwise I have to disable
noImplicitAny
in my tsconfig.json which can hide other errors.This wouldn't be needed either if the file were a compiled declaration file (.d.ts) because of
skipLibCheck
in the tsconfig.json so this seems like the simplest solution