(_: T | (() => T))
| 92 | export type Thunk<T> = () => T |
| 93 | |
| 94 | export const unwrapThunk = <T>(_: T | (() => T)): T => { |
| 95 | if (typeof _ === 'function') { |
| 96 | return (_ as any)() |
| 97 | } else { |
| 98 | return _ |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | export class RawError extends Tagged('RawError')<{ readonly error: unknown }> {} |
| 103 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…