(value: unknown)
| 13 | let nativeModifiersHelper: NativeModifiersHelper | null | undefined; |
| 14 | |
| 15 | function isNativeModifiersHelper(value: unknown): value is NativeModifiersHelper { |
| 16 | if (typeof value !== "object" || value === null) return false; |
| 17 | const candidate = (value as { isModifierPressed?: unknown }).isModifierPressed; |
| 18 | return typeof candidate === "function"; |
| 19 | } |
| 20 | |
| 21 | function loadNativeModifiersHelper(): NativeModifiersHelper | undefined { |
| 22 | if (nativeModifiersHelper !== undefined) return nativeModifiersHelper ?? undefined; |
no outgoing calls
no test coverage detected