Closed HenriBeck closed 5 years ago
Thanks. The parameter type inference already doesn't work in even the simplest case:
I see no way to make it optional. But then, changing the arity of the function without an overload might not be a use-case…
@HenriBeck Should we stick with the existing types here then (which are working just fine)?
I haven't see anything on the TypeScript issue tracker that would suggest a fix for conditional parameter types in the near future.
Yeah, if they work, then we don't need to change anything. Though I think before App will use it, we might need to do more cleanup and create documentation, especially around testing.
I wasn't able to get the types working without overloads for
run
andspawn
. Right now the types for those functions need to be duplicated in the different environments.Additionally, this makes the Type names and orders more consistent.