Skip to main content

Interface: SafeJsonResult<T>

Defined in: shared/utils/jsonSafety.ts:15

Result tuple produced by the safe JSON helpers.

Type Parametersโ€‹

Tโ€‹

T

Propertiesโ€‹

data?โ€‹

optional data: T

Defined in: shared/utils/jsonSafety.ts:17

Parsed value when the operation succeeds.


error?โ€‹

optional error: string

Defined in: shared/utils/jsonSafety.ts:22

Descriptive error message when the operation fails. Present only when SafeJsonResult.success is false.


successโ€‹

success: boolean

Defined in: shared/utils/jsonSafety.ts:24

Indicates whether the underlying operation completed successfully.