mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
+9
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user