Usage

Configure a thumbnail prefetch.

tsx
// Configure a thumbnail prefetch.
import { image } from 'kuito';

// A one-off picture: keep it on disk for the next launch, not in memory now.
const options: image.PrefetchOptions = { cache: 'disk' };

await image.prefetch('https://example.com/onboarding.png', options);

Type declaration

ts
export interface PrefetchOptions {
  /** The caches the image fills; `memory-disk` by default, as on an Image. */
  cache?: PrefetchCache;
}

Members 1

NameTypeRequiredDescription
cachePrefetchCacheNoThe caches the image fills; memory-disk by default, as on an Image.
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.