(key: string)
| 13 | export const NO = () => false |
| 14 | |
| 15 | export const isOn = (key: string): boolean => |
| 16 | key.charCodeAt(0) === 111 /* o */ && |
| 17 | key.charCodeAt(1) === 110 /* n */ && |
| 18 | // uppercase letter |
| 19 | (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97) |
| 20 | |
| 21 | export const isModelListener = (key: string): key is `onUpdate:${string}` => |
| 22 | key.startsWith('onUpdate:') |
no outgoing calls
no test coverage detected