(state: (() => A | undefined) & { error: unknown })
| 1 | export function initializationData<A>(state: (() => A | undefined) & { error: unknown }) { |
| 2 | if (state.error !== undefined) throw markLocalServerStartup(state.error) |
| 3 | return state() |
| 4 | } |
| 5 | |
| 6 | function markLocalServerStartup(error: unknown) { |
| 7 | const failure = error instanceof Error ? error : new Error(String(error)) |
no test coverage detected