Documentation / @imvu/chkn / ProductSource
Interface: ProductSource
Defined in: packages/chkn/src/ProductSource.ts:11
Where products come from.
Methods
fetchCfl()
ts
fetchCfl(productId): Promise<FetchedCfl>;Defined in: packages/chkn/src/ProductSource.ts:13
Fetch a product's current CFL.
Parameters
| Parameter | Type |
|---|---|
productId | number |
Returns
Promise<FetchedCfl>
fetchUrl()
ts
fetchUrl(url): Promise<Uint8Array<ArrayBufferLike>>;Defined in: packages/chkn/src/ProductSource.ts:15
Fetch any URL (external assets listed in a product's _contents.json).
Parameters
| Parameter | Type |
|---|---|
url | string |
Returns
Promise<Uint8Array<ArrayBufferLike>>