Class: ReadSuccess\<ResourceType>
Indicates that the request to read a resource was a success
Type parameters
Name | Type |
---|---|
ResourceType |
extends Resource |
Hierarchy
ResourceSuccess
\<ResourceType
>
↳ ReadSuccess
Constructors
constructor
• new ReadSuccess\<ResourceType
>(resource
, recalledFromMemory
): ReadSuccess
\<ResourceType
>
Type parameters
Name | Type |
---|---|
ResourceType |
extends Resource \<string > |
Parameters
Name | Type |
---|---|
resource |
ResourceType |
recalledFromMemory |
boolean |
Returns
ReadSuccess
\<ResourceType
>
Overrides
Defined in
packages/connected/src/results/success/ReadSuccess.ts:16
Properties
isError
• Readonly
isError: false
Inherited from
Defined in
packages/connected/src/results/success/SuccessResult.ts:9
recalledFromMemory
• recalledFromMemory: boolean
True if the resource was recalled from local memory rather than a recent request
Defined in
packages/connected/src/results/success/ReadSuccess.ts:14
resource
• resource: ResourceType
The resource that was successful
Inherited from
Defined in
packages/connected/src/results/success/SuccessResult.ts:25
type
• Readonly
Abstract
type: string
Inherited from
Defined in
packages/connected/src/results/success/SuccessResult.ts:8
uri
• uri: ResourceType
["uri"
]
The URI of the resource