isConsoleMethod
이 페이지에서

isConsoleMethod()

함수, 콘솔 분류

Whether name is one of the console methods the source compiler lowers, narrowing it to ConsoleMethod.

import { isConsoleMethod } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

function isConsoleMethod(name: string): name is ConsoleMethod

매개변수

name string

반환값

name is ConsoleMethod

설명

The front end asks this for every console.<name>(...) it meets, and refuses the rest by name rather than inventing a TypeShade console of its own.

함께 보기

소스

src/core/console.ts, 116행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고