addons/storyshots/storyshots-core/src/test-bodies.ts
Don't use 'Function' as a type. Avoid using the Function
type. Prefer a specific function type, like () => void
. Open
Open
options: { renderer?: any; serializer?: any } | Function = {}
- Read upRead up
- Exclude checks
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.