Intro
Setup
Installation
You'll also need...
- TypeScript version
>=5.1
. - A
package.json
with"type": "module"
(or an environment that supports ESM imports) - A
tsconfig.json
with...strict
orstrictNullChecks
(required)skipLibCheck
(strongly recommended, see FAQ)exactOptionalPropertyTypes
(recommended)
VSCode
Settings
To take advantage of all of ArkType's autocomplete capabilities, you'll need to add the following to your workspace settings at .vscode/settings.json
:
Extension (optional)
ArkDark provides the embedded syntax highlighting you'll see throughout the docs.
Without it, your definitions can still feel like a natural extension of the language.
With it, you'll forget there was ever a boundary in the first place.
Other editors
If you're using a different editor, we'd love help adding support. In the meantime, don't worry- ArkType still offers best-in-class DX anywhere TypeScript is supported.