( apply: CompactApply, data: unknown, onFail: ArkErrors.Handler | null, Ctx: IssuesClass = ArkErrors )
| 1137 | // writes its errors' class to find them (findsOnRead), so they're that class |
| 1138 | // and the bundle holds nothing more for them to wait with |
| 1139 | export const unreadErrors = ( |
| 1140 | apply: CompactApply, |
| 1141 | data: unknown, |
| 1142 | onFail: ArkErrors.Handler | null, |
| 1143 | Ctx: IssuesClass = ArkErrors |
| 1144 | ): unknown => { |
| 1145 | const errors = new (findsOnRead ? Ctx : unreadOf(Ctx))(data, 0, apply) |
| 1146 | return onFail ? onFail(errors) : errors |
| 1147 | } |
| 1148 | |
| 1149 | export const unreadCallErrors = ( |
| 1150 | apply: CompactApply, |
no test coverage detected