(action: unknown)
| 2 | import isPlainObject from './isPlainObject' |
| 3 | |
| 4 | export default function isAction(action: unknown): action is Action<string> { |
| 5 | return ( |
| 6 | isPlainObject(action) && |
| 7 | 'type' in action && |
| 8 | typeof (action as Record<'type', unknown>).type === 'string' |
| 9 | ) |
| 10 | } |
nothing calls this directly
no test coverage detected