Test repository for ErrorScript — a TypeScript fork with inferred error checking.
This can be used to quickly validate that
Docs & playground: errorscript-playground.vercel.app
Clone the ErrorScript repo next to this repo and use the errorscript branch:
- Repo: https://github.com/JamesDHW/ErrorScript
- Branch:
errorscript - Path:
../ErrorScript/(i.e. sibling of this repo)
-
Clone and checkout ErrorScript (if you haven’t already):
git clone https://github.com/JamesDHW/ErrorScript.git ../ErrorScript cd ../ErrorScript git checkout errorscript -
Build the playground package (produces the
.tgzthis repo installs):cd ../ErrorScript npm run build:playground -
Install dependencies in this repo (use
--forceto avoid cache):cd ../ErrorScript-test-repo # or back to this repo pnpm i --force
After that you can use the local ErrorScript compiler (e.g. pnpm exec tsc) as usual.
-
Select your VSCode version of TypeScript
- Open
index.ts cmd + shft + Pand typeTypeScript: Select TypeScript Version...- Select
Use Workspace Version 6.0.0-errorscript
- Open
You should see that index.ts is now working as expected.