File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -768,9 +768,11 @@ func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) {
768
768
// isBuiltIn returns the string for a builtin type that we want to support
769
769
// if the name is a reserved builtin type. This is for types like 'comparable'.
770
770
// These types are not implemented in golang, so we just have to hardcode it.
771
- func (g * Generator ) isBuiltIn (name string ) (bool , string ) {
771
+ func (_ Generator ) isBuiltIn (name string ) (bool , string ) {
772
772
// Note: @emyrk If we use constraints like Ordered, we can pull those
773
- // dynamically from their respective packages.
773
+ // dynamically from their respective packages. This is a method on Generator
774
+ // so if someone wants to implement that, they can find the respective package
775
+ // and type.
774
776
switch name {
775
777
case "comparable" :
776
778
// To be complete, we include "any". Kinda sucks :(
You can’t perform that action at this time.
0 commit comments