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

Export formatter #179

Merged
merged 3 commits into from Mar 13, 2023
Merged

Conversation

tommy-mitchell
Copy link
Contributor

Closes #147.

With #165 changing the formatter, it makes more sense to provide our formatter so that programmatic users can prettify their output, too.

tsd is still the default export, but the formatter can be imported like so:

import tsd, {formatter} from 'tsd';

@tommy-mitchell
Copy link
Contributor Author

Force pushed because my local wasn't up to date with main.

@sindresorhus sindresorhus merged commit 02c7fc3 into tsdjs:main Mar 13, 2023
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.

Export formatter
2 participants