Skip to content

refactor: add explicit return types to exported component functions - #203

Closed
ZacLou wants to merge 2 commits into
TricklePay:mainfrom
ZacLou:refactor/explicit-return-types-issue-154
Closed

refactor: add explicit return types to exported component functions#203
ZacLou wants to merge 2 commits into
TricklePay:mainfrom
ZacLou:refactor/explicit-return-types-issue-154

Conversation

@ZacLou

@ZacLou ZacLou commented Sep 1, 2026

Copy link
Copy Markdown

Closes #154

Adds explicit React.JSX.Element (or React.JSX.Element | null) return types to exported component functions so module boundaries are self-documenting and accidental shape changes surface at the definition site.

Also fixes the existing components/skeleton.test.tsx type errors by adding an eslint-disable for the test's internal React-prop assertions, so
pm run typecheck now passes.

  • Typecheck passes.
  • No runtime behavior changed.
  • Existing lint errors in unrelated test files remain unchanged.

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.

Add explicit return types to exported functions

2 participants