Skip to content

build(daffio): enable strict template type checking - #5200

Open
xelaint wants to merge 1 commit into
developfrom
build/daffio-strict-templating
Open

xelaint wants to merge 1 commit into
developfrom
build/daffio-strict-templating

Conversation

@xelaint

@xelaint xelaint commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

Current behavior

Part of: #4829

New behavior

Turns on strictTemplates for the daff.io app and its tests.

Fixed these errors:

  • make the API docs package filter and role group pipes generic so they accept navigation docs
  • make daffDocsApiRoleGroup in docs-utils generic over any doc with a role
  • type the API item label through a labelType helper
  • make the footer and header item test wrappers standalone so their imports are visible to the template checker

Breaking change?

  • Yes
  • No

Additional context

@xelaint xelaint added the package: daff.io @daffodil/daff.io label Nov 24, 2026
@xelaint
xelaint requested review from a team as code owners November 24, 2026 21:48
@xelaint xelaint changed the title build(daffio): enable strict tempalte type checking build(daffio): enable strict template type checking Nov 24, 2026
@xelaint
xelaint force-pushed the build/daffio-strict-templating branch from 342e631 to d31314b Compare November 24, 2026 21:49

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: daff.io @daffodil/daff.io

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant