-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Skip TopKind in maps * Use default any for TopKind * Remove maturity attribute
- Loading branch information
Showing
4 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- cue -- | ||
package cuetsy | ||
|
||
List: { | ||
test?: [...(#StructTest | #DefinedStructTest)] | ||
|
||
#StructTest: { | ||
a: string | ||
} | ||
|
||
#DefinedStructTest: { | ||
type: "hola" | ||
... | ||
} | ||
} @cuetsy(kind="interface") | ||
|
||
-- ts -- | ||
|
||
export interface List { | ||
test?: Array<({ | ||
a: string; | ||
} | { | ||
type: 'hola'; | ||
})>; | ||
} | ||
|
||
export const defaultList: Partial<List> = { | ||
test: [], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters