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

Add TypeScript definition and test #28

Merged
merged 2 commits into from
Aug 24, 2024
Merged

Conversation

muhashi
Copy link
Contributor

@muhashi muhashi commented Aug 24, 2024

Fixes #24

index.d.ts Outdated
@@ -0,0 +1,24 @@
export type Options = {
/**
The unicorn-ifying string.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in sync with the readme.

package.json Outdated
@@ -29,6 +33,7 @@
"dependencies": {},
"devDependencies": {
"ava": "^6.1.3",
"tsd": "^0.31.1",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most packages don't actually need type-tests. They just need to validate the types, so I prefer to just run typescript on the types.

@muhashi
Copy link
Contributor Author

muhashi commented Aug 24, 2024

@sindresorhus updated based on your comments, let me know how it looks now

@sindresorhus sindresorhus merged commit e3315be into sindresorhus:main Aug 24, 2024
3 checks passed
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 TypeScript Definition
2 participants