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