---
title: "ConsoleSink: type in Console, TypeShade API reference"
description: "ConsoleSink, a type in Console. Host callback used by the Playground, tests, and editor debug adapters."
url: https://typeshade.dev/api/consolesink/
language: en
---

# `ConsoleSink`

Type in Console

Host callback used by the Playground, tests, and editor debug adapters.

`import type { ConsoleSink } from 'typeshade'`

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

## Syntax

```ts
type ConsoleSink = (event: ConsoleEvent) => void;
```

## Source

[`src/core/console.ts`, line 65](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/console.ts#L65), at commit af54ddad5
