mastodon_cache.svelte.ts view source
{ get: (error_message?: string | undefined) => MastodonCache; get_maybe: () => MastodonCache | undefined; set: (value: MastodonCache) => MastodonCache; } 2 declarations
mastodon_cache.svelte.ts view source
{ get: (error_message?: string | undefined) => MastodonCache; get_maybe: () => MastodonCache | undefined; set: (value: MastodonCache) => MastodonCache; } mastodon_cache.svelte.ts view source
load_datatype () => Promise<Array<[Url, FetchValueCacheItem]> | null>
dataIf undefined, it's still loading. null means no data.
type FetchValueCache | undefined | null
constructortype new (load_data: () => Promise<[Url, { key: string; url: string; params: any; value: any; etag: string | null; last_modified: string | null; }][] | null>, load_on_mount?: boolean): MastodonCache
load_data() => Promise<[Url, { key: string; url: string; params: any; value: any; etag: string | null; last_modified: string | null; }][] | null>load_on_mountbooleantrueload