Skip to main content

Interface: SafeJsonResult<T>

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

Result envelope returned by safe JSON helpers.

Remarksโ€‹

Operations capture thrown errors and expose them as structured metadata so callers never deal with exceptions during normal control flow.

Type Parametersโ€‹

Tโ€‹

T

Propertiesโ€‹

data?โ€‹

optional data: T

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

Parsed value when the operation succeeds.


error?โ€‹

optional error: string

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

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


successโ€‹

success: boolean

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

Indicates whether the underlying operation completed successfully.