API reference / @evolu/common / Type / InferErrors
Type Alias: InferErrors<T>
type InferErrors<T> =
T extends Type<any, any, any, infer Error, any, infer ParentError>
? Error | ParentError
: never;
Defined in: packages/common/src/Type.ts:468
Extracts all error types (Error / ParentError) from a Type.
Type Parameters
| Type Parameter |
|---|
T extends AnyType |