Skip to content

Commit 093e07c

Browse files
fuziontechclaude
andcommitted
fix(examples): move @ts-expect-error to correct line
The @ts-expect-error directive needs to be on the line immediately before the error occurs. Moved it from line 32 to line 35 (right before the timestamp property with the wrong type). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8fba2e9 commit 093e07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/generated/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ hogtyped.capture('button_clicked', {
2929
});
3030

3131
// ❌ COMPILE ERROR: Wrong property type
32-
// @ts-expect-error - This will not compile!
3332
hogtyped.capture('button_clicked', {
3433
buttonId: 'submit-btn',
3534
page: '/checkout',
35+
// @ts-expect-error - This will not compile!
3636
timestamp: 'not-a-number' // Should be number!
3737
});
3838

0 commit comments

Comments
 (0)