chore(deps): upgrade all dependencies, toolchains and images (#2825)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-17 21:08:56 +02:00
1 parent 56e04e7b53
commit 3b552e00ef
510 files changed
+23614 -37473

No files matched your search

@@ -3,13 +3,16 @@
// SPDX-License-Identifier: Apache-2.0
type Primitives = null | undefined | string | number | bigint | boolean | symbol;
export type Throws<T, E extends Error> = (T & {readonly __throws?: E}) | Extract<T, Primitives>;
export type Throws<T, E extends Error> =
| (T & {__throws?(error: E): void})
| Extract<T, Primitives>
| (T extends void ? T : never);
export type ExtractErrors<T> = T extends Throws<unknown, infer E extends Error> ? E : never;
export type ExtractErrors<T> = T extends Throws<any, infer E> ? E : never;
export type ExtractSuccess<T> = T extends Throws<infer S, Error> ? S : T;
export type ExtractSuccess<T> = T extends Throws<infer S, any> ? S : T;
export type CombineErrors<T extends Array<unknown>> = T extends [infer First, ...infer Rest]
export type CombineErrors<T extends Array<any>> = T extends [infer First, ...infer Rest]
? ExtractErrors<First> | CombineErrors<Rest>
: never;