hasUseTypeshadeDirective
On this page

hasUseTypeshadeDirective()

Function in Authoring

True when the SourceFile contains at least one top-level "use typeshade".

import { hasUseTypeshadeDirective } from 'typeshade'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

Syntax

function hasUseTypeshadeDirective(sourceFile: ts.SourceFile): boolean

Parameters

sourceFile ts.SourceFile

Return value

boolean

Source

src/compiler/ts/directive.ts, line 55, at commit 26de7be8

Edit this page Report a problem