Skip to content

Conversation

@Clingdawg
Copy link

Summary

  • Prompting Tools: Add null checks for regex match results, fix HandlebarsTemplateDelegate type
  • ReportTemplate: Fix import path casing (@/components -> @/Components)
  • DashboardTemplate: Fix import path casing, add DOM libs to tsconfig, fix React.Node type
  • Browser skill: Add allowImportingTsExtensions for .ts imports

Test plan

  • Run bunx tsc --noEmit in each affected project

🤖 Generated with Claude Code

- Prompting Tools: Add null checks for regex match results in
  ValidateTemplate.ts, fix HandlebarsTemplateDelegate type in
  RenderTemplate.ts
- ReportTemplate: Fix import path casing (@/components -> @/Components,
  @/lib -> @/Lib)
- DashboardTemplate: Fix import path casing across all files, add DOM
  libs to tsconfig, fix React.Node -> React.ReactNode, add missing deps
- Browser skill: Add allowImportingTsExtensions to tsconfig for .ts
  extension imports

Co-Authored-By: Claude Opus 4.5 <[email protected]>

for (let i = 0; i < lines.length; i++) {
const line = lines[i];
const line = lines[i]!;
Copy link

@neilsoult neilsoult Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love hacks like this in typescript. I think it's far better to use safe access operators and use default values rather than tell typescript to basically ignore typesafety on this const.

Suggested change
const line = lines[i]!;
const line = lines[i] ?? '';

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

Successfully merging this pull request may close these issues.

2 participants