(value: unknown, propName: string)
| 152 | } |
| 153 | |
| 154 | function sanitizeEventValue(value: unknown, propName: string): EventValue { |
| 155 | if (isFunction(value) || isArray(value)) { |
| 156 | return value as EventValue |
| 157 | } |
| 158 | warn( |
| 159 | `Wrong type passed as event handler to ${propName} - did you forget @ or : ` + |
| 160 | `in front of your prop?\nExpected function or array of functions, received type ${typeof value}.`, |
| 161 | ) |
| 162 | return NOOP |
| 163 | } |
no test coverage detected