(source: string)
| 33 | import {makeSharedRuntimeTypeProvider} from './sprout/shared-runtime-type-provider'; |
| 34 | |
| 35 | export function parseLanguage(source: string): 'flow' | 'typescript' { |
| 36 | return source.indexOf('@flow') !== -1 ? 'flow' : 'typescript'; |
| 37 | } |
| 38 | |
| 39 | export function parseSourceType(source: string): 'script' | 'module' { |
| 40 | return source.indexOf('@script') !== -1 ? 'script' : 'module'; |
no outgoing calls
no test coverage detected