Skip to content

Class: ResourceSuccess\<ResourceType>

Indicates that a request to a resource was aa success

Type parameters

Name Type
ResourceType extends Resource

Hierarchy

ResourceSuccess

↳↳ Unfetched

↳↳ ReadSuccess

↳↳ UpdateSuccess

↳↳ IgnoredInvalidUpdateSuccess

Constructors

constructor

new ResourceSuccess\<ResourceType>(resource): ResourceSuccess\<ResourceType>

Type parameters

Name Type
ResourceType extends Resource\<string>

Parameters

Name Type
resource ResourceType

Returns

ResourceSuccess\<ResourceType>

Overrides

SuccessResult.constructor

Defined in

packages/connected/src/results/success/SuccessResult.ts:27

Properties

isError

Readonly isError: false

Inherited from

SuccessResult.isError

Defined in

packages/connected/src/results/success/SuccessResult.ts:9


resource

resource: ResourceType

The resource that was successful

Defined in

packages/connected/src/results/success/SuccessResult.ts:25


type

Readonly Abstract type: string

Inherited from

SuccessResult.type

Defined in

packages/connected/src/results/success/SuccessResult.ts:8


uri

uri: ResourceType["uri"]

The URI of the resource

Defined in

packages/connected/src/results/success/SuccessResult.ts:21