Files
twtxt-lib/dist-demo/dist-browser/types.d.ts
Eric Woodward 475fcf6331 update to v0.9.1.
add npm package link
prep for jsr support (I hope)
add favicon
update installation instructions
2026-02-23 00:27:59 -05:00

33 lines
666 B
TypeScript

export interface LoadAndParseTwtxtWithCacheConfig {
cacheKeyPrefix: string;
onLoad?: (data: Twtxt) => void;
user?: Twttr;
}
export interface Metadata {
[key: string]: string | string[];
}
export interface Twt {
avatar?: string;
content: string;
created: string;
createdUTC: string;
hash?: string;
nick?: string;
noDom?: boolean;
replyHash?: string;
replyNick?: string;
replyUrl?: string;
url?: string;
}
export interface Twttr {
avatar?: string;
nick: string;
url: string;
}
export interface Twtxt {
following: Twttr[];
lastModified?: string;
metadata: Metadata;
twts: Twt[];
}