-
Notifications
You must be signed in to change notification settings - Fork 1
NamedResource
Name | Type |
---|---|
T |
extends ResourceType
|
• new NamedResource<T
>(bridge
, data
)
Name | Type |
---|---|
T |
extends ResourceType
|
Name | Type |
---|---|
bridge |
Hue |
data |
ResourceTypeGet <T > & { metadata : { archetype : ArcheType ; name : string } } |
src/structures/NamedResource.ts:15
• data: ResourceTypeGet
<T
> & { metadata
: { archetype
: ArcheType
; name
: string
} }
src/structures/NamedResource.ts:13
• Readonly
hue: Hue
• Readonly
Abstract
manager: Manager
<T
>
• Readonly
Abstract
type: ResourceType
• get
archeType(): ArcheType
src/structures/NamedResource.ts:24
• get
id(): string
string
Resource.id
• get
identifier(): ResourceIdentifier
<ResourceType
>
ResourceIdentifier
<ResourceType
>
Resource.identifier
• get
name(): string
string
src/structures/NamedResource.ts:20
▸ _clone(): NamedResource
<T
>
▸ _patch(data
): void
Name | Type |
---|---|
data |
Partial <ResourceTypeGet <T >> |
void
▸ _update(data
): NamedResource
<T
>
Name | Type |
---|---|
data |
Partial <ResourceTypeGet <T >> |
▸ Abstract
edit(options
): Promise
<void
>
Name | Type |
---|---|
options |
Object |
options.archeType? |
ArcheType |
options.name? |
string |
Promise
<void
>
src/structures/NamedResource.ts:36
▸ isType<T
>(type
): this is NarrowResource<T>
Name | Type |
---|---|
T |
extends ResourceType
|
Name | Type |
---|---|
type |
T |
this is NarrowResource<T>
▸ setArcheType(archeType
): Promise
<void
>
Name | Type |
---|---|
archeType |
ArcheType |
Promise
<void
>
src/structures/NamedResource.ts:32
▸ setName(name
): Promise
<void
>
Name | Type |
---|---|
name |
string |
Promise
<void
>