isKnownIntrinsic()
함수, 백엔드 분류
Returns true when name is a builtin the registry can spell on every target: either an id with an INTRINSICS entry or a member of PORTABLE_INTRINSICS.
import { isKnownIntrinsic } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const isKnownIntrinsic: (name: string) => boolean매개변수
namestringThe
callid to test.
반환값
boolean
설명
An id that is
neither is a user-defined or external function, which spells the same everywhere, or a
builtin nobody has classified yet. Ids in PRE_EMIT_INTRINSICS return false: they are
removed before emit and have no spelling.
함께 보기
소스
src/core/intrinsics.ts, 1155행, 커밋 c66579bf 기준