isTypeshadeSource()
Function in Authoring
Return whether a TypeScript source string opts into TypeShade with the "use typeshade" directive.
import { isTypeshadeSource } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
function isTypeshadeSource(source: string, fileName = 'check.ts'): booleanParameters
sourcestringfileNameoptionalunknown
Return value
boolean
Source
src/compiler/ts/source-file.ts, line 728, at commit 26de7be8