Type Alias: SafeResult<TData, TErrorShape>
On this page
SafeResult<
TData,TErrorShape>: readonly [TData,undefined] | readonly [undefined,inferSafeError<TErrorShape>]
Defined in: packages/client/dist/index.d.mts:139
What safe() resolves to: [data, undefined] or [undefined, error].
Type Parameters
| Type Parameter |
|---|
TData |
TErrorShape |
See
https://trpc.io/docs/client/vanilla/error-handling#errors-as-values-with-safe