We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ec758b commit 62f3b09Copy full SHA for 62f3b09
dev-packages/e2e-tests/test-applications/sveltekit-2/src/routes/type-assertion/+page.svelte
@@ -5,10 +5,8 @@
5
<h1>Type Assertion</h1>
6
7
<p>
8
- TIL:
9
-<code>const myCanvas = <HTMLCanvasElement>document.getElementById("main_canvas");</code>
10
- is equal to
11
-<code>const myCanvas = document.getElementById("main_canvas") as HTMLCanvasElement;</code>
+ This route only exists to ensure we don't emit a build error because of the angle bracket type assertion in +page.ts
+ see https://github.com/getsentry/sentry-javascript/issues/9318
12
</p>
13
14
0 commit comments