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
这种隐式 any 有办法让它报错吗,写着写着就忘记加类型了
The text was updated successfully, but these errors were encountered:
这个不是框架层面控制的,需要把 tsconfig 里面的 strict: true 开启,然后配置下 eslint,https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md
strict: true
Sorry, something went wrong.
没有用的,这个参数是框架主动给他设置成了 any,如果框架将其设置成 unknown ,主动加上类型后又会报错
export interface ConfigReducer<S = any> { (state: S, ...payload: any): void }
好的,这个我看下。欢迎 PR
No branches or pull requests
这种隐式 any 有办法让它报错吗,写着写着就忘记加类型了
The text was updated successfully, but these errors were encountered: