Skip to content

@web-engine-dev/resources


@web-engine-dev/resources / defineResourceKey

Function: defineResourceKey() ​

defineResourceKey<T>(key): ResourceDescriptor<T>

Define a resource type using a string key (for serialization)

Type Parameters ​

T ​

T

Parameters ​

key ​

string

The string key for the resource

Returns ​

ResourceDescriptor<T>

A ResourceDescriptor for the resource type

Proprietary software. All rights reserved.