Skip to main content

Interface: SafeJsonResult<T>

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

Result tuple produced by the safe JSON helpers.

Type Parametersโ€‹

Tโ€‹

T

Propertiesโ€‹

data?โ€‹

optional data?: T;

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

Parsed value when the operation succeeds.


error?โ€‹

optional error?: string;

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

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


successโ€‹

success: boolean;

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

Indicates whether the underlying operation completed successfully.