Skip to content

Commit e653cf5

Browse files
committed
Linting
1 parent 66a456c commit e653cf5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/apitypings/main.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -768,9 +768,11 @@ func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) {
768768
// isBuiltIn returns the string for a builtin type that we want to support
769769
// if the name is a reserved builtin type. This is for types like 'comparable'.
770770
// 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) {
772772
// 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.
774776
switch name {
775777
case "comparable":
776778
// To be complete, we include "any". Kinda sucks :(

0 commit comments

Comments
 (0)