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
Version: Deno 1.39.2+70ac061
A type annotation could be inferred and not require an explicit type annotation. I have the following function declared:
export function createMockApp< S extends Record<string | number | symbol, any> = Record<string, any>, >( state = {} as S, ): Application<S>;
And fast check should be able to infer the type of state as S instead of requiring an explicit type annotation, but fast check errors with:
state
S
Missing explicit type in the public API. at file:///Users/kitsonk/github/oak/testing.ts:27:3
The text was updated successfully, but these errors were encountered:
I also ran across this with a property initializer, for example:
class A { handler = (() => {}) as HandlerMethod; }
fast check should be able to infer that.
Sorry, something went wrong.
fix(fast_check): analyze identifiers in type assertions/as exprs (#21899
6861411
) Closes #21894
d47ee46
dsherret
Successfully merging a pull request may close this issue.
Version: Deno 1.39.2+70ac061
A type annotation could be inferred and not require an explicit type annotation. I have the following function declared:
And fast check should be able to infer the type of
state
asS
instead of requiring an explicit type annotation, but fast check errors with:The text was updated successfully, but these errors were encountered: