Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add type declarations for configs #347

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

feat: add type declarations for configs #347

wants to merge 5 commits into from

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Nov 28, 2024

Since the flat configuration system has us doing native JavaScript imports, TypeScript can now do proper type checking which means it's useful to start shipping types.

Because TypeScript requires file names to be unique (of which the file extension is not part of), I've introduced a single declaration file that holds the types for each config, rather than having a .d.ts per config, and to ensure maximum compatibility I've defined declarations for each configuration both with and without the .js extension.

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.

1 participant