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

[Documentation & Readme] Typescript definition file for orientjs , orientjs.d.ts available now #184

Closed
saeedtabrizi opened this issue Jun 25, 2016 · 17 comments
Assignees
Milestone

Comments

@saeedtabrizi
Copy link
Contributor

saeedtabrizi commented Jun 25, 2016

Hi
after two years working on some projects with typescript and nodejs with orientdb , i produce a definition file for orientjs and its availabale in PR DefinitelyTyped/DefinitelyTyped#9813 (comment) now.
so the nodejs typescript developers can use orientjs definition file in their projects easily .
for using typings in your projects

  1. execute npm install -g typings
  2. execute typings search orientjs
  3. execute typings install dt~orientjs --global

Note : if you have error on bluebird dependency you can run typings install dt~bluebird --global and typings install dt~node --global .
you can find more info at http://definitelytyped.org/ .

EDIT
In the newer version of npm and according to https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/ you can easily install definition files from npm repository by following command :
execute in Terminal : npm install orientjs @types/orientjs --save in your project path .

Welcome to your comments .

Regards
Saeed Tabrizi

@saeedtabrizi saeedtabrizi changed the title [Documentaion & Readme] Typescript definition file for orientjs , orientjs.d.ts available now [Documentation & Readme] Typescript definition file for orientjs , orientjs.d.ts available now Jun 25, 2016
@saeedtabrizi
Copy link
Contributor Author

Hi @maggiolo00
there is a new simple way to install definition files now . and i edit my procedure .
EDIT
In the newer version of npm and according to https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/ you can easily install definition files from npm repository by following command :
execute in Terminal : npm install orientjs @types/orientjs --save in your project path .

Thanks .

@saeedtabrizi
Copy link
Contributor Author

Hi @maggiolo00 , the new orientjs features in #234 , #233 , #232 needs to be update documentation .
Already i pushed the new definition file fot type script in DefinitelyTyped/DefinitelyTyped#14425 .

@lvca
Copy link
Member

lvca commented Aug 5, 2017

@saeedtabrizi what is missing in this issue?

@lvca lvca added this to the 3.0 milestone Aug 5, 2017
@saeedtabrizi
Copy link
Contributor Author

@lvca it's about documentation for added features to orientjs.

  • if not exist options in schema operations.
  • supporting sequences.
  • using raw expression .

@saeedtabrizi
Copy link
Contributor Author

@lvca i recently update typescript .d.ts definition file for the latest orientjs features.
It is available in npm repository via following command :
'npm install @types/orientjs --save-dev '
This command can be documented for typescript users .

@ghost
Copy link

ghost commented Nov 6, 2017

Why not bundle types with the package so they won't have to be copied to DefinitelyTyped and installed separately?

@saeedtabrizi
Copy link
Contributor Author

@andy-ms It's good idea for ease of use in typescript . but for integration with bluebird and nodejs .d.ts files , i prefer to use DefinitelyTyped packages .

@ghost
Copy link

ghost commented Nov 6, 2017

You should be able to npm install --save @types/node @types/bluebird in your package to get those dependencies.

@saeedtabrizi
Copy link
Contributor Author

@andy-ms I agree with you completely . If @maggiolo00 inform to me about updating definition for v3.0.0 , so i can update package.json to use the bundled definition file for typescript users .
Thanks.

@saeedtabrizi
Copy link
Contributor Author

Hi @wolf4ood , may i know your plan for publish v3 release date ? I want to update typescript definition file as we discussed here .
Thanks
Saeed

@wolf4ood
Copy link
Member

Hi @saeedtabrizi

we are doing bunch of beta releases. I think the final release will come the next week.

Do you need help with the typescript definition for the new APIs?

Thanks

@saeedtabrizi
Copy link
Contributor Author

Hi @wolf4ood
So good news .
I need to know the changes list and deprecation in v3.0 APIs exactly , so i review the code changes in main branch at the next week .
Definitely, i will update typescript definition file after know it .

Thanks

@saeedtabrizi
Copy link
Contributor Author

Hi @lvca , @wolf4ood
Recently i have an update for typescript definition that available in npmjs @types/orientjs .
I just update the builtin orientjs .d.ts file version to latest definition file in PR #374
Thanks.

@saeedtabrizi
Copy link
Contributor Author

Hi @lvca , @wolf4ood
I have updated typescript definition file to the latest new API changes in DefinitelyTyped/DefinitelyTyped#38389 .

@diegonc
Copy link

diegonc commented Sep 17, 2020

Hi, @saeedtabrizi.

The typings are missing the extends relationship between ODatabaseTransaction and OTransaction located at database-tx.js line 92.

Any reason why?

Thanks!

@saeedtabrizi
Copy link
Contributor Author

Hi @diegonc
Thanks for review , i just apply it .

@saeedtabrizi
Copy link
Contributor Author

saeedtabrizi commented Sep 18, 2020

Just i push a new implementation ( #438 , #439 ) of typescript definition for orientjs and embed it to orientjs package.
After this push we don't need to install seprated typing package for orientjs and there is a built in typescript support for orientjs .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants