Skip to content

Commit 5068814

Browse files
committed
chore: typescript to accept null golang maps
Golang can encode maps as `null`. The `Record` type is therefore not sufficient to fully describe the data.
1 parent 14105ff commit 5068814

File tree

2 files changed

+34
-37
lines changed

2 files changed

+34
-37
lines changed

scripts/apitypings/main.go

-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ func main() {
6767

6868
func TsMutations(ts *guts.Typescript) {
6969
ts.ApplyMutations(
70-
// TODO: Remove 'NotNullMaps'. This is hiding potential bugs
71-
// of referencing maps that are actually null.
72-
config.NotNullMaps,
7370
FixSerpentStruct,
7471
// Prefer enums as types
7572
config.EnumAsTypes,

site/src/api/typesGenerated.ts

+34-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)