Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi,I have a question about ts equal check. #683

Open
AaronConlon opened this issue Mar 8, 2023 · 1 comment
Open

Hi,I have a question about ts equal check. #683

AaronConlon opened this issue Mar 8, 2023 · 1 comment

Comments

@AaronConlon
Copy link

image
I use bunjs to exec a ts file:

console.log('1' == 1)

TypeScript will not throw error.So, is your description is right?
thanks.

@plbstl
Copy link

plbstl commented Jun 20, 2023

Yes, the description is correct.

When executing a TS file, Bunjs doesn't check the file for typescript errors.

See: https://bun.sh/docs/runtime/typescript#running-ts-files

Note — Similar to other build tools, Bun does not typecheck the files. Use tsc (the official TypeScript CLI) if you're looking to catch static type errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants