Skip to content

Console

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:87

assert(condition?, …data?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:88

boolean

any[]

void


clear(): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:94

The console.clear() static method clears the console if possible.

MDN Reference

void


count(label?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:100

The console.count() static method logs the number of times that this particular call to count() has been called.

MDN Reference

string

void


countReset(label?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:106

The console.countReset() static method resets counter used with console/count_static.

MDN Reference

string

void


debug(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:112

The console.debug() static method outputs a message to the console at the ‘debug’ log level.

MDN Reference

any[]

void


dir(item?, options?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:118

The console.dir() static method displays a list of the properties of the specified JavaScript object.

MDN Reference

any

any

void


dirxml(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:124

The console.dirxml() static method displays an interactive tree of the descendant elements of the specified XML/HTML element.

MDN Reference

any[]

void


error(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:130

The console.error() static method outputs a message to the console at the ‘error’ log level.

MDN Reference

any[]

void


group(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:136

The console.group() static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.

MDN Reference

any[]

void


groupCollapsed(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:142

The console.groupCollapsed() static method creates a new inline group in the console.

MDN Reference

any[]

void


groupEnd(): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:148

The console.groupEnd() static method exits the current inline group in the console.

MDN Reference

void


info(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:154

The console.info() static method outputs a message to the console at the ‘info’ log level.

MDN Reference

any[]

void


log(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:160

The console.log() static method outputs a message to the console.

MDN Reference

any[]

void


table(tabularData?, properties?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:166

The console.table() static method displays tabular data as a table.

MDN Reference

any

string[]

void


time(label?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:172

The console.time() static method starts a timer you can use to track how long an operation takes.

MDN Reference

string

void


timeEnd(label?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:178

The console.timeEnd() static method stops a timer that was previously started by calling console/time_static.

MDN Reference

string

void


timeLog(label?, …data?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:184

The console.timeLog() static method logs the current value of a timer that was previously started by calling console/time_static.

MDN Reference

string

any[]

void


timeStamp(label?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:185

string

void


trace(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:191

The console.trace() static method outputs a stack trace to the console.

MDN Reference

any[]

void


warn(…data): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:197

The console.warn() static method outputs a warning message to the console at the ‘warning’ log level.

MDN Reference

any[]

void