From aaeec3ef0ba24db07efbcf34be62c8a89135d56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Finn=20B=C3=B6ger?= Date: Thu, 25 Jan 2024 19:37:33 +0100 Subject: [PATCH] fix: update typings to match api response --- src/interfaces.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/interfaces.ts b/src/interfaces.ts index d24a175a..6b167e14 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -80,34 +80,34 @@ export interface ISbStoryData< Content = ISbComponentType & { [index: string]: any }, > extends ISbMultipleStoriesData { alternates: ISbAlternateObject[] - breadcrumbs: ISbLinkURLObject[] + breadcrumbs?: ISbLinkURLObject[] content: Content created_at: string default_full_slug?: string - default_root: string - disble_fe_editor: boolean + default_root?: string + disble_fe_editor?: boolean first_published_at?: string full_slug: string group_id: string id: number - imported_at: string - is_folder: boolean + imported_at?: string + is_folder?: boolean is_startpage?: boolean lang: string - last_author: { + last_author?: { id: number userid: string } meta_data: any name: string - parent: ISbStoryData + parent?: ISbStoryData parent_id: number path?: string - pinned: '1' | boolean + pinned?: '1' | boolean position: number - published: boolean + published?: boolean published_at: string | null - release_id: number + release_id?: number slug: string sort_by_date: string | null tag_list: string[] @@ -116,8 +116,8 @@ export interface ISbStoryData< name: string | null lang: ISbStoryData['lang'] }[] - unpublished_changes: boolean - updated_at: string + unpublished_changes?: boolean + updated_at?: string uuid: string }