MCPcopy Index your code
hub / github.com/microsoft/typescript-go / GetLibFileName

Function GetLibFileName

internal/tsoptions/enummaps.go:132–143  ·  view source on GitHub ↗
(libName string)

Source from the content-addressed store, hash-verified

130)
131
132func GetLibFileName(libName string) (string, bool) {
133 // checks if the libName is a valid lib name or file name and converts the lib name to the filename if needed
134 libName = tspath.ToFileNameLowerCase(libName)
135 if LibFilesSet.Has(libName) {
136 return libName, true
137 }
138 lib, ok := LibMap.Get(libName)
139 if !ok {
140 return "", false
141 }
142 return lib.(string), true
143}
144
145var moduleResolutionOptionMap = collections.NewOrderedMapFromList([]collections.MapEntry[string, any]{
146 {Key: "node16", Value: core.ModuleResolutionKindNode16},

Callers 3

loadMethod · 0.92
processAllProgramFilesFunction · 0.92

Calls 3

ToFileNameLowerCaseFunction · 0.92
GetMethod · 0.65
HasMethod · 0.45

Tested by

no test coverage detected