Class: ResourceSuccess\<ResourceType>
Indicates that a request to a resource was aa success
Type parameters
Name | Type |
---|---|
ResourceType |
extends Resource |
Hierarchy
↳ ResourceSuccess
↳↳ Unfetched
↳↳ ReadSuccess
↳↳ 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
Defined in
packages/connected/src/results/success/SuccessResult.ts:27
Properties
isError
• Readonly
isError: false
Inherited from
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
Defined in
packages/connected/src/results/success/SuccessResult.ts:8
uri
• uri: ResourceType
["uri"
]
The URI of the resource