addons/actions/src/models/ActionsFunction.ts
This overload and the one on line 5 can be combined into one signature taking Record<t string> | T</t>
. Open
Open
<T extends string>(handler1: T, options?: ActionOptions): ActionsMap<T>;
- Read upRead up
- Exclude checks
Rule: unified-signatures
Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.
Notes
- TypeScript Only
Config
Not configurable.
Examples
"unified-signatures": true
For more information see this page.