mastodon.ts view source
(host: string, id: string, cache?: Map<string, { key: string; url: string; params: any; value: any; etag: string | null; last_modified: string | null; }> | null | undefined, log?: Logger | undefined, request?: RequestInit | undefined, token?: string | undefined, fetch?: { ...; } | undefined): Promise<...> import {fetch_mastodon_status_context} from '@fuzdev/fuz_mastodon/mastodon.js'; cache?
type Map<string, { key: string; url: string; params: any; value: any; etag: string | null; last_modified: string | null; }> | null
optional
log?
type Logger
optional
request?
type RequestInit
optional
token?
type string
optional
fetch?
type { (input: RequestInfo | URL, init?: RequestInit | undefined): Promise<Response>; (input: string | Request | URL, init?: RequestInit | undefined): Promise<...>; }
optional