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

Function IsDeclarationFileName

internal/tspath/extension.go:103–105  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

101}
102
103func IsDeclarationFileName(fileName string) bool {
104 return GetDeclarationFileExtension(fileName) != ""
105}
106
107func ExtensionIsOneOf(ext string, extensions []string) bool {
108 return slices.Contains(extensions, ext)

Calls 1

Tested by

no test coverage detected