# Shiki Twoslash

We're using [Shiki Twoslash](https://shikijs.github.io/twoslash/) to add
compiler information to TypeScript and JavaScript code snippets.

```ts twoslash
// @filename: maths.ts
export function absolute(num: number) {
  if (num < 0) return num * -1;
  return num;
}

// @filename: index.ts
import { absolute } from "./maths.js";
const value = absolute(-1);
```

Pretty neat, isn't it?

```ts twoslash
// @errors: 2339
const welcome = "Cześć";
const words = welcome.contains(" ");
```
