(
action: ReadingAction,
payload: Record<string, unknown> = {},
)
| 67 | hasNativeHandler(WebKitMessageHandlers.Reading); |
| 68 | |
| 69 | export const postReading = ( |
| 70 | action: ReadingAction, |
| 71 | payload: Record<string, unknown> = {}, |
| 72 | ): void => { |
| 73 | postNativeMessage(WebKitMessageHandlers.Reading, { action, ...payload }); |
| 74 | }; |
| 75 | |
| 76 | export const isReadingOpen = (): boolean => state.open; |
| 77 |
no test coverage detected