Skip to content

TypeScript type checking not performed properly? #944

Answered by rschristian
X-m7 asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, this behavior is correct; use tsc instead to check types.

Most modern build tools no longer support type checking as it's egregiously slow. It's better to leave that up to the editor or a type checking script instead.

To me the entire point of TypeScript is to be able to check things before the code runs and crashes (or otherwise misbehaves)

This is super easy to do:

        "scripts": {
		"start": "wmr",
-		"build": "wmr build --prerender",
+		"build": "tsc && wmr build --prerender",
		"serve": "wmr serve"
	},

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by X-m7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants