(result: void | (() => void) | SyncConfigRes)
| 713 | } |
| 714 | |
| 715 | function normalizeSyncFnResult(result: void | (() => void) | SyncConfigRes) { |
| 716 | if (typeof result === `function`) { |
| 717 | return { cleanup: result } satisfies SyncConfigRes |
| 718 | } |
| 719 | |
| 720 | if (result === undefined) { |
| 721 | return {} satisfies SyncConfigRes |
| 722 | } |
| 723 | |
| 724 | return result |
| 725 | } |
| 726 | |
| 727 | function isTxCommittedPayload(payload: unknown): payload is TxCommitted { |
| 728 | if (!isRecord(payload) || payload.type !== `tx:committed`) { |
no outgoing calls
no test coverage detected