isConsoleMethod
On this page

isConsoleMethod()

Function in Console

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

import { isConsoleMethod } from 'typeshade'

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

Syntax

function isConsoleMethod(name: string): name is ConsoleMethod

Parameters

name string

Return value

name is ConsoleMethod

Description

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.

See also

Source

src/core/console.ts, line 116, at commit 26de7be8

Edit this page Report a problem