Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update typing for not-yet published stories #862

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ export interface ISbStoryData<
breadcrumbs?: ISbLinkURLObject[]
content: Content
created_at: string
default_full_slug?: string
default_full_slug?: string | null
default_root?: string
disble_fe_editor?: boolean
first_published_at?: string
first_published_at?: string | null
full_slug: string
group_id: string
id: number
Expand All @@ -106,21 +106,21 @@ export interface ISbStoryData<
meta_data: any
name: string
parent?: ISbStoryData
parent_id: number
parent_id: number | null
path?: string
pinned?: '1' | boolean
position: number
published?: boolean
published_at: string | null
release_id?: number
release_id?: number | null
slug: string
sort_by_date: string | null
tag_list: string[]
translated_slugs?: {
path: string
name: string | null
lang: ISbStoryData['lang']
}[]
}[] | null
unpublished_changes?: boolean
updated_at?: string
uuid: string
Expand Down
Loading