Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 4b76326

Browse files
committed
fix: add null to typing of nullable fields
1 parent d1b77f9 commit 4b76326

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/interfaces.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ export interface ISbStoryData<
8888
breadcrumbs?: ISbLinkURLObject[]
8989
content: Content
9090
created_at: string
91-
default_full_slug?: string
91+
default_full_slug?: string | null
9292
default_root?: string
9393
disble_fe_editor?: boolean
94-
first_published_at?: string
94+
first_published_at?: string | null
9595
full_slug: string
9696
group_id: string
9797
id: number
@@ -106,21 +106,21 @@ export interface ISbStoryData<
106106
meta_data: any
107107
name: string
108108
parent?: ISbStoryData
109-
parent_id: number
109+
parent_id: number | null
110110
path?: string
111111
pinned?: '1' | boolean
112112
position: number
113113
published?: boolean
114114
published_at: string | null
115-
release_id?: number
115+
release_id?: number | null
116116
slug: string
117117
sort_by_date: string | null
118118
tag_list: string[]
119119
translated_slugs?: {
120120
path: string
121121
name: string | null
122122
lang: ISbStoryData['lang']
123-
}[]
123+
}[] | null
124124
unpublished_changes?: boolean
125125
updated_at?: string
126126
uuid: string

0 commit comments

Comments
 (0)