MCPcopy Create free account
hub / github.com/microsoft/typescript-go / GetTypesPackageName

Function GetTypesPackageName

internal/module/util.go:77–79  ·  view source on GitHub ↗
(packageName string)

Source from the content-addressed store, hash-verified

75}
76
77func GetTypesPackageName(packageName string) string {
78 return "@types/" + MangleScopedPackageName(packageName)
79}
80
81func GetPackageNameFromTypesPackageName(mangledName string) string {
82 withoutAtTypePrefix := strings.TrimPrefix(mangledName, "@types/")

Callers 4

GetSymlinkCacheMethod · 0.92
typesPackageExistsMethod · 0.92

Calls 1

MangleScopedPackageNameFunction · 0.85

Tested by

no test coverage detected