diff options
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; +}; |