Skip to content
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

Raise an error when a function isn't well typed and can't be inferred from a callback to type annotation #371

Open
kevinbarabash opened this issue Nov 30, 2024 · 0 comments

Comments

@kevinbarabash
Copy link
Contributor

The following are acceptable:

let add: (a: number, b: number) => number = (a, b) => a + b;
let foo = (reducer: (action: Action, state: State) => State)): State => {
  return ...
}
foo((action, state) => { ... })

The following are not acceptable:

let fst = (a, b) => a;
let snd = (a, b) => b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant