diff --git a/convert.go b/convert.go index a2e5830..65f12af 100644 --- a/convert.go +++ b/convert.go @@ -626,10 +626,8 @@ func (ts *Typescript) buildStruct(obj types.Object, st *types.Struct) (*bindings switch typedObj := obj.Type().(type) { case *types.Named: typeParamed = typedObj - //case *types.Alias: - // Generic Go alias types are introduced in Go 1.23. When updated to - // Go 1.23, this code can be uncommented - //typeParamed = typedObj + case *types.Alias: + typeParamed = typedObj default: return tsi, xerrors.Errorf("not supported type %T for %q to parse type parameters", obj.Type(), obj.Name()) } diff --git a/go.mod b/go.mod index 87854d3..446781c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/coder/guts -go 1.22.8 +go 1.23 require ( github.com/dop251/goja v0.0.0-20241024094426-79f3a7efcdbd