Skip to content

Commit 181f379

Browse files
committed
fix readonly
1 parent 46fba27 commit 181f379

File tree

2 files changed

+45
-86
lines changed

2 files changed

+45
-86
lines changed

scripts/apitypings/testdata/enums/enums.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
export type Enum = "bar" | "baz" | "foo" | "qux";
55

66
// From codersdk/enums.go
7-
export type EnumSliceType = Enum[];
7+
export type EnumSliceType = readonly Enum[];
88

99
export const Enums: Enum[] = ["bar", "baz", "foo", "qux"];

site/src/api/typesGenerated.ts

Lines changed: 44 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)