Skip to content

UseObjectOptions

Defined in: types.ts:317

Object hook options.

T

optional api: string

Defined in: types.ts:319

API endpoint


optional body: Record<string, unknown>

Defined in: types.ts:327

Request body extras


optional headers: Record<string, string>

Defined in: types.ts:325

Request headers


optional initialValue: Partial<T>

Defined in: types.ts:323

Initial object value


optional onError: (error) => void

Defined in: types.ts:331

Called on error

Error

void


optional onFinish: (event) => void

Defined in: types.ts:329

Called on finish

Error | undefined

T | undefined

void


optional schema: unknown

Defined in: types.ts:321

Schema for validation