Skip to content

fix: add declare modifier to top-level function declarations in .d.ts files#2

Merged
robigan merged 2 commits into
masterfrom
copilot/fix-function-declarations
May 21, 2026
Merged

fix: add declare modifier to top-level function declarations in .d.ts files#2
robigan merged 2 commits into
masterfrom
copilot/fix-function-declarations

Conversation

Copy link
Copy Markdown

Copilot AI commented May 21, 2026

TypeScript error ts(1046) was raised across all declaration modules converted from ambient to proper .d.ts format in #1 — top-level function declarations require a declare or export modifier in non-ambient .d.ts files.

Changes

  • All components/**/*.d.ts: Prepended declare to every top-level function declaration (182 files)
  • Add declare to the const settings declaration in settings.d.ts

Before:

function Component(props: Props): JSX.Element;

After:

declare function Component(props: Props): JSX.Element;

Copilot AI requested a review from robigan May 21, 2026 07:06
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