Skip to content

Commit 377c5fa

Browse files
committed
fix: update type annotations for Storyblok
1 parent b3d8f89 commit 377c5fa

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@kickstartds/jsonschema2storyblok",
5+
"comment": "update type annotations",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@kickstartds/jsonschema2storyblok"
10+
}

tools/jsonschema2storyblok/src/@types/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export interface IStoryblokSchemaElement {
5252
type: GenericType;
5353
pos: number;
5454
key: string; // undocumented
55-
keys?: string[];
5655
use_uuid?: boolean;
5756
source?: 'internal' | 'external' | 'internal_stories' | 'internal_languages';
5857
options?: IStoryblokSchemaElementOption[];
@@ -70,6 +69,9 @@ export interface IStoryblokSchemaElement {
7069
minimum?: number;
7170
maximum?: number;
7271

72+
// type: `tab` / `section`
73+
keys?: string[];
74+
7375
// type: `asset` / `multiasset`
7476
filetypes?: AssetType[];
7577
asset_folder_id?: number;
@@ -89,6 +91,7 @@ export interface IStoryblokSchemaElement {
8991

9092
// our own processing helpers
9193
objectFields?: IStoryblokSchemaElement[];
94+
section?: string;
9295
preview_tmpl?: string;
9396
preview_field?: string;
9497
}

0 commit comments

Comments
 (0)