Interface: ClosureOptions\<Body\>
Interface: ClosureOptions<Body>
Section titled “Interface: ClosureOptions<Body>”Defined in: packages/grabkit/src/ClosureOptions.ts:6
Options passed to grabkit(baseURL?, options?).
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”Body
Properties
Section titled “Properties”
optionalbody?:Body
Defined in: packages/grabkit/src/ClosureOptions.ts:7
casing?
Section titled “casing?”
optionalcasing?:Casing
Defined in: packages/grabkit/src/GrabkitOptions.ts:10
Default
Section titled “Default”'none'. Passthrough; set explicitly for your API's key convention.Inherited from
Section titled “Inherited from”format?
Section titled “format?”
optionalformat?:GrabkitFormat
Defined in: packages/grabkit/src/GrabkitOptions.ts:8
Default
Section titled “Default”'json-api'Inherited from
Section titled “Inherited from”headers?
Section titled “headers?”
optionalheaders?:AnyRecord|Headers
Defined in: packages/grabkit/src/ClosureOptions.ts:9
Deprecated
Section titled “Deprecated”Use factory-level headers; per-call headers merge here.
Overrides
Section titled “Overrides”jsonApiHeaders?
Section titled “jsonApiHeaders?”
optionaljsonApiHeaders?:boolean
Defined in: packages/grabkit/src/GrabkitOptions.ts:12
Default
Section titled “Default”true in JSON:API mode; ignored when format is 'json'.
Inherited from
Section titled “Inherited from”GrabkitFactoryOptions.jsonApiHeaders
optionallog?: (message) =>boolean|void
Defined in: packages/grabkit/src/ClosureOptions.ts:11
Parameters
Section titled “Parameters”message
Section titled “message”string
Returns
Section titled “Returns”boolean | void
Default
Section titled “Default”true. Log HTTP errors via console.error when no custom logger is set.