chore: switch to guts for typescript types generation (#15801)

switch to guts for typescript type generation
omitempty vs null must now be explicit
This commit is contained in:
Steven Masley
2024-12-11 14:39:21 -06:00
committed by GitHub
parent 2ec2e8ae6d
commit 077e594856
36 changed files with 2125 additions and 1684 deletions
+9 -7
View File
@@ -1,18 +1,20 @@
// Code generated by 'guts'. DO NOT EDIT.
// From codersdk/genericmap.go
export interface Buzz {
readonly foo: Foo;
readonly bazz: string;
readonly foo: Foo;
readonly bazz: string;
}
// From codersdk/genericmap.go
export type Custom = Foo | Buzz;
// From codersdk/genericmap.go
export interface Foo {
readonly bar: string;
readonly bar: string;
}
// From codersdk/genericmap.go
export interface FooBuzz<R extends Custom> {
readonly something: Readonly<Array<R>>;
readonly something: readonly R[];
}
// From codersdk/genericmap.go
export type Custom = Foo | Buzz