-
Notifications
You must be signed in to change notification settings - Fork 1.1k
will providing typescript type definition file in the plan? #169
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
Comments
I have just added a pull request to DefinitelyTyped/DefinitelyTyped#7697 to add oracle.d.ts |
@Bigous Nice one! |
Pull was merged... I think we could close this one. |
Now, where should this be documented?! |
DefinetlyTyped is a facilitator only. It holds files .d.ts that original projects do not release or maintain. I think that if it's gonna be there, we could only mention it on README.md. Something like:
Instalation: $ npm install -g tsd
$ tsd init
$ tsd query oracledb --resolve --action install --save If we choose to bring it to oracledb itself on next release, we should add an index.d.ts at the root of package with the content of oracledb.d.ts. Then I think we should mention it on o README.md and improve it with the content of API.md (complete the code documentation). In this case, no other installation is necessary... just the |
Found out (angular2 project is an example) that we can have a typings directory inside our repo and install tsd dependencies on it, like node.d.ts, and have it all packaged here... |
@Bigous I don't see a problem with adding it to node-oracledb. Submit a PR? Overall, we need to find a way to machine-generate API doc. I know @dmcghan was enthused today by http://documentation.js.org/ |
Yes, @jed let me know about it today! I like that it covers the C/C++ and JavaScript (ES6). @sagiegurari what do you think? You use JSDoc to Markdown, right? documentationjs seems to use the same syntax... @cjbj mentioned having both reference docs and user guides. This could help automate the reference docs. |
definitions for oracledb module on DefinitelyTyped are for version 1.5, though the actual module version is 1.10 (supporting promises etc). |
@wallride I'd be happy for someone in the community to look after typescript definitions |
Hi @wallride, The actual one I've submitted. But it clearly needs an update. This week I'm with my agenda full, if you can, you could update it, but i'll try to update it next week. []'s |
Sorry about the delay, but today I've submitted an updated pull request to definitely typed repo. As soon as it is accepted, version 1.10.x is now supported. |
Added to typings registry too. TSD is deprecated in favor of typings so, typings is the recommended way to install .d.ts typings install oracledb --save
typings install env~node --save --global []'s |
Updated typescript definitions on typings registry to v1.11.0 |
Thanks @Bigous |
All right, now that Typescript 2.0 was released, they have standardized the npm registry as the main source of typescript definitions.
and you are ready to go. []'s |
@Bigous I guess I should make PR to the master branch now. According to https://github.com/DefinitelyTyped/DefinitelyTyped#what-exactly-is-the-relationship-between-this-repository-and-the-types-packages-on-npm
|
A link from @connorjayfitzgerald via the Slack channel: DefinitelyTyped/DefinitelyTyped#35127 |
And the typescript update for node-oracledb 3.1 was published and is available https://www.npmjs.com/package/@types/oracledb Thanks @connorjayfitzgerald ! |
No problem 👍🏻 |
I will close this old issue. @connorjayfitzgerald has been doing a great job of maintaining the typescript definitions. See #1136 |
I think using javascript is not good for a complex project, and the typescript seems pretty awesome for handling it. but it need .d.ts file to call node-oracledb. will oracle provide typescript type definition file (.d.ts) ? thanks!
The text was updated successfully, but these errors were encountered: