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

Resolve receive type doesn't work with arrow functions #454

Closed
marcus-sa opened this issue Jun 1, 2023 · 0 comments · Fixed by #521
Closed

Resolve receive type doesn't work with arrow functions #454

marcus-sa opened this issue Jun 1, 2023 · 0 comments · Fixed by #521

Comments

@marcus-sa
Copy link
Contributor

marcus-sa commented Jun 1, 2023

This works

function f<T>(type?: ReceiveType<T>): Type {
  return resolveReceiveType(type);
}

But this doesn't

const f = <T>(type?: ReceiveType<T>): Type => {
  // No type information received. Is deepkit/type correctly installed?
  return resolveReceiveType(type);
}
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

Successfully merging a pull request may close this issue.

1 participant