CHAN.RUN
Extract the error union from a declared function's error classes. Maps [typeof NotFoundError, typeof DbError] → NotFoundError | DbError.
type InferFaultErrors<TErrors> = InstanceType<TErrors[number]>;Defined in: src/types.ts
Extract the error union from a declared function's error classes. Maps [typeof NotFoundError, typeof DbError] → NotFoundError | DbError.
| Type Parameter |
|---|
TErrors extends NamedFaultErrorClass<string>[] |