Skip to main content

ServerPerformDataStructureReturn

@prismatic-io/spectral"types/server-types"ServerPerformDataStructureReturn

Used to represent returning conventional data and does not require content type to be specified

Hierarchy#

Index#

Properties#

Properties#

Optional contentType#

contentType? : undefined | string

Defined in types/server-types.ts:79

The Content Type of the payload data that can be optionally specified


data#

data: boolean | number | string | Record‹string, unknown› | unknown[] | unknown

Defined in types/server-types.ts:71

Data structure to return from the action


Optional state#

state? : Record‹string, unknown›

Defined in types/server-types.ts:83

An optional object, the keys and values of which will be persisted in the instanceState and available for subsequent actions and executions


Optional statusCode#

statusCode? : undefined | number

Defined in types/server-types.ts:81

The HTTP Status code that will be used if this terminates a synchronous invocation