API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeResourceKey

@codexo/exojs / assets / stable

The identity of one runtime resource: every residency entry, in-flight fetch and ownership claim is keyed by it. Composed of the asset type's identity, the SourceKey the resource is built from, and - when the type declares one - a resource discriminator covering every option that changes the produced resource. Two requests that differ only in an option the type does not treat as resource-relevant resolve to one key and are served by one resource. Containing the source key rather than the bare locator is what keeps the two dimensions consistent: distinct source data can never collapse onto one resident resource, whatever a type's resource discriminator says.

0
props
0
methods
0
events
Import
import { ResourceKey } from '@codexo/exojs'

The identity of one runtime resource: every residency entry, in-flight fetch and ownership claim is keyed by it.

Composed of the asset type's identity, the SourceKey the resource is built from, and - when the type declares one - a resource discriminator covering every option that changes the produced resource. Two requests that differ only in an option the type does not treat as resource-relevant resolve to one key and are served by one resource.

Containing the source key rather than the bare locator is what keeps the two dimensions consistent: distinct source data can never collapse onto one resident resource, whatever a type's resource discriminator says.

Definition1
string
Source