Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update apitypings unit tests
  • Loading branch information
johnstcn committed Jan 18, 2023
commit 196b263c24147994e5ca17644ed8cb8eedb55349
1 change: 1 addition & 0 deletions scripts/apitypings/testdata/enums/enums.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package enums

type Enum string
type Enums []Enum

const (
EnumFoo Enum = "foo"
Expand Down
3 changes: 3 additions & 0 deletions scripts/apitypings/testdata/enums/enums.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Code generated by 'make site/src/api/typesGenerated.ts'. DO NOT EDIT.

// From codersdk/enums.go
export type Enums = Enum[]

// From codersdk/enums.go
export type Enum = "bar" | "baz" | "foo" | "qux"
export const Enums: Enum[] = ["bar", "baz", "foo", "qux"]