We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import React from 'react'; export default class Example extends React.Component<any, any> { render() { console.log(this as any); return null; } }
$ precinct ./example.ts []
If you remove the as any cast then:
as any
$ precinct ./example.ts [ 'react' ]
This means that precinct misses imports in any file using casts in a function call.
The text was updated successfully, but these errors were encountered:
Merge pull request dependents#64 from dependents/tsconfig
01443be
Add support for a typescript configuration
I’ve encountered the same issue. Maybe this is because detective-typescript still uses typescript v3 instead of v4.
detective-typescript
Sorry, something went wrong.
v9.0.0 is out which updates detective-typescript to use Typescript 4.x.
No branches or pull requests
example.ts
If you remove the
as any
cast then:This means that precinct misses imports in any file using casts in a function call.
The text was updated successfully, but these errors were encountered: