* Gets the extension from a path. * Path must have a valid extension.
(path)
| 20913 | * Path must have a valid extension. |
| 20914 | */ |
| 20915 | function extensionFromPath(path) { |
| 20916 | var ext = tryGetExtensionFromPath(path); |
| 20917 | return ext !== undefined ? ext : ts.Debug.fail("File ".concat(path, " has unknown extension.")); |
| 20918 | } |
| 20919 | ts.extensionFromPath = extensionFromPath; |
| 20920 | function isAnySupportedFileExtension(path) { |
| 20921 | return tryGetExtensionFromPath(path) !== undefined; |
nothing calls this directly
no test coverage detected