fbredius/storybook

View on GitHub
addons/actions/src/preview/action.ts

Summary

Maintainability
A
0 mins
Test Coverage

Don't use 'Function' as a type. Avoid using the Function type. Prefer a specific function type, like () => void.
Open

const findProto = (obj: unknown, callback: (proto: any) => boolean): Function | null => {
Severity: Minor
Found in addons/actions/src/preview/action.ts by tslint

Rule: ban-types

Bans specific types from being used. Does not ban the corresponding runtime objects from being used.

Notes
  • TypeScript Only

Config

A list of ["regex", "optional explanation here"], which bans types that match regex

Examples
"ban-types": true,Object,Use {} instead.,String
Schema
{
  "type": "list",
  "listType": {
    "type": "array",
    "items": {
      "type": "string"
    },
    "minLength": 1,
    "maxLength": 2
  }
}

For more information see this page.

There are no issues that match your filters.

Category
Status