Interface: SafeJsonResult<T>
Defined in: shared/utils/jsonSafety.ts:17
Result tuple produced by the safe JSON helpers.
Type Parametersโ
Tโ
T
Propertiesโ
data?โ
optionaldata:T
Defined in: shared/utils/jsonSafety.ts:19
Parsed value when the operation succeeds.
error?โ
optionalerror:string
Defined in: shared/utils/jsonSafety.ts:24
Descriptive error message when the operation fails. Present only when
SafeJsonResult.success is false.
successโ
success:
boolean
Defined in: shared/utils/jsonSafety.ts:26
Indicates whether the underlying operation completed successfully.