Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit39b9d23

Browse files
authored
chore: remove nullable list elements in ts typegen (#17369)
Backend will not send partially null slices.
1 parentc06ef7c commit39b9d23

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎scripts/apitypings/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ func TsMutations(ts *guts.Typescript) {
7979
// Omitempty + null is just '?' in golang json marshal
8080
// number?: number | null --> number?: number
8181
config.SimplifyOmitEmpty,
82+
// TsType: (string | null)[] --> (string)[]
83+
config.NullUnionSlices,
8284
)
8385
}
8486

‎site/src/api/typesGenerated.ts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp