fbredius/storybook

View on GitHub
addons/actions/src/models/ActionsFunction.ts

Summary

Maintainability
A
0 mins
Test Coverage

This overload and the one on line 5 can be combined into one signature taking Record<t string> | T</t>.
Open

  <T extends string>(handler1: T, options?: ActionOptions): ActionsMap<T>;

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.

There are no issues that match your filters.

Category
Status