Skip to content

Commit

Permalink
fix: update typings to match api response
Browse files Browse the repository at this point in the history
  • Loading branch information
finnboeger committed Jan 26, 2024
1 parent f55270a commit aaeec3e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,34 +80,34 @@ export interface ISbStoryData<
Content = ISbComponentType<string> & { [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[]
Expand All @@ -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
}

Expand Down

0 comments on commit aaeec3e

Please sign in to comment.