We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cffad1b commit 7fa0e8eCopy full SHA for 7fa0e8e
testdata/union/union.go
@@ -3,3 +3,9 @@ package union
3
type UnionConstraint[T string | int64] struct {
4
Value T
5
}
6
+
7
+// Repeated constraints are redundant
8
+// TODO: Write a mutation to remove redundant constraints
9
+type Repeated[T string | string | int64 | uint64] struct {
10
+ Value T
11
+}
testdata/union/union.ts
@@ -1,5 +1,10 @@
1
// Code generated by 'guts'. DO NOT EDIT.
2
+// From union/union.go
+export interface Repeated<T extends string | string | number | number> {
+ readonly Value: T;
// From union/union.go
export interface UnionConstraint<T extends string | number> {
readonly Value: T;
0 commit comments