# ts_type_error

> TypeScript type-checking reported an error.

TypeScript type-checking reported an error.

| | |
| --- | --- |
| Kind | Build or validation problem |
| Reported by | The build (source walk and TypeScript), before any archive exists |
| `disko` exit code | 1 (problems) |

TypeScript type-checking reported an error. TypeScript projects are
type-checked with disko's pinned compiler and fixed options (strict, ES2023, no
DOM) before anything is emitted, and any error fails the build. The message
starts with the TypeScript code, for example `TS2345:`.

## Wrong

```ts title="src/main.ts"
game.on("player-join", ({ player }) => {
  player.setRadius("large");
});
```

## Right

```ts title="src/main.ts"
game.on("player-join", ({ player }) => {
  player.setRadius(15);
});
```

Your own `tsconfig.json` only configures the editor; the build ignores it.

## See also

- [Project structure & imports](/games/project-structure)
- [`game` reference](/reference/game)
