(value: unknown)
| 23 | } |
| 24 | |
| 25 | export const getHoveredLinkText = (value: unknown) => { |
| 26 | if (!isRecord(value)) return |
| 27 | const link = value.currentHoveredLink |
| 28 | if (!isRecord(link)) return |
| 29 | if (typeof link.text !== "string") return |
| 30 | return link.text |
| 31 | } |
| 32 | |
| 33 | export const getSpeechRecognitionCtor = <T>(value: unknown): (new () => T) | undefined => { |
| 34 | if (!isRecord(value)) return |
no test coverage detected