findUseTypeshadeDirective()
함수, 작성 분류
Scan the top-level statements of a SourceFile and return the first "use typeshade"; directive, or undefined if none is present.
import { findUseTypeshadeDirective } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
function findUseTypeshadeDirective( sourceFile: ts.SourceFile,): ts.ExpressionStatement | undefined매개변수
sourceFilets.SourceFile
반환값
ts.ExpressionStatement | undefined
설명
Only direct children of the SourceFile are examined (no nested scopes).
소스
src/compiler/ts/directive.ts, 41행, 커밋 c66579bf 기준