Skip to content

Conversation

@kricsleo
Copy link

@kricsleo kricsleo commented Dec 7, 2025

Partially resolves #45

This PR adds index.d.ts to enable support for TypeScript types.
Developers can now import type { Configuration } from 'nano-staged' in .ts files or @type {import('nano-staged').Configuration} in .js files to enjoy type-safety.

(You can edit all the type descriptions if you find anything inaccurate. ❤️)

Regarding support for a native TypeScript configuration file (e.g., nano-staged.ts), I could submit another PR if you think it's also suitable for this project.

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.

Typescript support

1 participant