-
Notifications
You must be signed in to change notification settings - Fork 54
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 definition files #64
Conversation
@yan-foto I also updated chokidar to 3.0.2. |
6ada65e
to
5db23df
Compare
5db23df
to
c0513a6
Compare
01dd313
to
8cc7f5f
Compare
Version |
I need to take a closer look to this. I prefer users not to compile Since I'm not familiar enough with TS, merging this PR might take a while. But I'll do it for sure! I think this is an important contribution. |
They don't need to compile TS when they are installing it via Update: I push a commit with main.ts added in npmignore file. |
@yan-foto This is a sample npm package with declaration on it. The index.d.ts is the declaration file ( also what they call typescript definition). This will be generated before running |
This is still not the optimal case! I quickly searched for the best way to publish TS packages on NPM and found this nice piece of advice. Simple but elegant! |
That will only works if we have |
That was my understanding from your PR that this project is now pure TS, as you renamed That would be the perfect case in my opinion. |
Ok got it. I will make this PR a 100% TS. I will remove the |
Updated the main.ts with the current main.js code. Removed main.js and generate it on |
Perfect. Please give me some time to review it, before I can merge it. |
LGTM |
Sorry for late reply. This PR has some major issues, which costed me long enough to fix so that I will suspend it. Here's a list:
To avoid any further possible breakage, I will close this PR. |
Thank you for your good insight. I will try to make another PR with the fixes on the issue you point out. |
Added definition file for typescript users.