Closed
Description
note that it's not required that you declare type parameters.
In general - we are lazy and avoid declaring the type arguments if there are no options (example).
If there are no options then TS can infer
[]
as the options type, and it can infer the messageIds from the object literal definition.Ideally as well you wouldn't ever need to declare two parameters... but that's a problem with TS (there's no way to tell TS "use this explicit generic and infer the second generic) :(
Originally posted by @bradzacher in #197 (comment)
Metadata
Metadata
Assignees
Labels
No labels