Skip to content

Documentation / @imvu/chkn / CdnProductSource

Class: CdnProductSource ​

Defined in: packages/chkn/src/ProductSource.ts:40

Products from IMVU's public productdata CDN ({baseUrl}/{productId}/{revision}).

Implements ​

Constructors ​

Constructor ​

ts
new CdnProductSource(options?): CdnProductSource;

Defined in: packages/chkn/src/ProductSource.ts:46

Parameters ​

ParameterType
options?CdnProductSourceOptions

Returns ​

CdnProductSource

Methods ​

cflUrl() ​

ts
cflUrl(productId, revision): string;

Defined in: packages/chkn/src/ProductSource.ts:68

Parameters ​

ParameterType
productIdnumber
revisionnumber

Returns ​

string


fetchCfl() ​

ts
fetchCfl(productId): Promise<FetchedCfl>;

Defined in: packages/chkn/src/ProductSource.ts:72

Fetch a product's current CFL.

Parameters ​

ParameterType
productIdnumber

Returns ​

Promise<FetchedCfl>

Implementation of ​

ProductSource.fetchCfl


fetchUrl() ​

ts
fetchUrl(url): Promise<Uint8Array<ArrayBufferLike>>;

Defined in: packages/chkn/src/ProductSource.ts:77

Fetch any URL (external assets listed in a product's _contents.json).

Parameters ​

ParameterType
urlstring

Returns ​

Promise<Uint8Array<ArrayBufferLike>>

Implementation of ​

ProductSource.fetchUrl

Released under the MIT License.