This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Resource
S222em edited this page May 13, 2023
·
51 revisions
Name | Type |
---|---|
T |
extends ApiResourceType
|
-
Resource
• new Resource<T
>(bridge
, data
)
Name | Type |
---|---|
T |
extends ApiResourceType
|
Name | Type |
---|---|
bridge |
Bridge |
data |
ApiResourceTypeGet <T > |
• Readonly
bridge: Bridge
• data: ApiResourceTypeGet
<T
>
• Readonly
Abstract
type: ApiResourceType
• get
id(): string
string
• get
identifier(): ResourceIdentifier
<ApiResourceType
>
ResourceIdentifier
<ApiResourceType
>
▸ _clone(): Resource
<T
>
Resource
<T
>
▸ _patch(data
): void
Name | Type |
---|---|
data |
Partial <ApiResourceTypeGet <T >> |
void
▸ Protected
_put(data
): Promise
<void
>
Name | Type |
---|---|
data |
ApiResourceTypePut <T > |
Promise
<void
>
▸ _update(data
): Resource
<T
>
Name | Type |
---|---|
data |
Partial <ApiResourceTypeGet <T >> |
Resource
<T
>
▸ Abstract
edit(options
): Promise
<void
>
Name | Type |
---|---|
options |
Record <string , any > |
Promise
<void
>
▸ isType<T
>(type
): this is NarrowResource<T>
Name | Type |
---|---|
T |
extends ApiResourceType
|
Name | Type |
---|---|
type |
T |
this is NarrowResource<T>