isTypeshadeSource
On this page

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 af54ddad5.

Syntax

function isTypeshadeSource(source: string, fileName = 'check.ts'): boolean

Parameters

source string
fileNameoptional unknown

Return value

boolean

Source

src/compiler/ts/source-file.ts, line 797, at commit af54ddad5

Edit this page Report a problem