diff options
author | João Augusto Costa Branco Marado Torres <torres.dev@disroot.org> | 2025-08-05 18:50:37 +0100 |
---|---|---|
committer | João Augusto Costa Branco Marado Torres <torres.dev@disroot.org> | 2025-08-05 18:50:37 +0100 |
commit | 0af094770c4ebabc56ff761a8bd215bc397c0f7e (patch) | |
tree | a9ad669c8b84b4d13897732ed93ccfcbbeb2cb25 /src/lib/collection/types.ts | |
parent | 84eef3f848c4efa18985a776021a58720744523a (diff) |
refactor: reading page review
Signed-off-by: João Augusto Costa Branco Marado Torres <torres.dev@disroot.org>
Diffstat (limited to 'src/lib/collection/types.ts')
-rw-r--r-- | src/lib/collection/types.ts | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/lib/collection/types.ts b/src/lib/collection/types.ts new file mode 100644 index 0000000..67f1110 --- /dev/null +++ b/src/lib/collection/types.ts @@ -0,0 +1,54 @@ +export type Person = { + "@type": "Person"; + "@id"?: string; + email?: string; + knows?: Person[]; + knowsLanguage?: string[]; + nationality?: { + "@type": "Country"; + }; + description?: string; + name?: string; + url?: string[]; +}; + +export type BlogPosting = { + "@type": "BlogPosting"; + "@id": string; + url: string; + headline: string; + name: string; + alternativeHeadline?: string; + inLanguage: string; + abstract?: string; + description?: string; + author?: Person; + contributor?: Person[]; + translator?: Person[]; + dateCreated: string; + dateModified?: string; + datePublished?: string; + keywords?: string[]; + wordCount?: number; + timeRequired?: string; + articleBody?: string; + text?: string; + copyrightHolder?: Person[]; + copyrightNotice?: string; + copyrightYear?: number; + creativeWorkStatus?: "Published"; + encodingFormat?: "text/html"; + isAccessibleForFree?: true; + license: string | undefined; + citation?: BlogPosting[]; + mentions?: BlogPosting[]; + translationOfWork?: BlogPosting; + workTranslations?: BlogPosting[]; + isBasedOn?: BlogPosting; + locationCreated?: { + "@type": "Place"; + name: string; + }; + publisher?: Person; + version?: string | number; +}; |