[F] getSourceFileKindFromExt
function getSourceFileKindFromExt(path): SourceFileKind | undefined;Classify .tsp as TypeSpec and .js, .mjs, or .ts as JavaScript; other extensions return undefined.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
path | string |
Returns
Section titled “Returns”SourceFileKind | undefined