From e82d360e2218f4d81fbbacc67f7ac23388a9f6b2 Mon Sep 17 00:00:00 2001 From: 3y3k0 <3y3k0@yandex-team.ru> Date: Sun, 25 Jun 2023 01:05:52 +0300 Subject: [PATCH] fix: Make types more flexible --- src/models/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/index.ts b/src/models/index.ts index bfd4f25b..a117a783 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -60,9 +60,9 @@ export enum Vcs { export interface DocPageData extends DocBasePageData { leading?: false; - breadcrumbs: BreadcrumbItem[]; + breadcrumbs?: BreadcrumbItem[]; html: string; - title: string; + title?: string; headings: DocHeadingItem[]; meta: DocMeta; vcsUrl?: string; @@ -88,7 +88,7 @@ export interface DocMeta { } export interface TocData { - title: string; + title?: string; href: string; items: TocItem[]; stage?: string;