hasUseTypeshadeDirective()
함수, 작성 분류
SourceFile에 최상위 "use typeshade"가 하나 이상 있으면 true입니다.
import { hasUseTypeshadeDirective } from 'typeshade'
설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.
구문
function hasUseTypeshadeDirective(sourceFile: ts.SourceFile): boolean매개변수
sourceFilets.SourceFile
반환값
boolean
소스
src/compiler/ts/directive.ts, 39행, 커밋 af54ddad5 기준