If not using VS Code, ensure that your IDE is using the workspace TypeScript version.
To see the reproduction in the terminal.
# Optional, if pnpm not installed.
corepack enable
# Install packages
pnpm i
# Run TypeCheck
pnpm typecheck
Open tests/example.spec.ts
to see this in your IDE.