Objection.js: Any plans for a .d.ts file for TypeScript projects?

Created on 26 Mar 2016  路  16Comments  路  Source: Vincit/objection.js

First off this is a great project, it wraps knex just enough.

I am using this project in a project written in TypeScript. Is there a definition file or plans to create a definition file for the Objection.js library? Thanks.

enhancement question

All 16 comments

We are using typescript in one of our projects at Vincit, and we have written some typings for that project, but we are not any good at it :smile:. If you have, or want to write, the typings I would be happy to accept a pull request.

Ha, I am not any good at it either. I've started one here https://github.com/dotDeeka/objection-d-ts that I can reference in my project. If I actually get it right I will certainly submit a PR for it.

Hoping to use this in a Typescript project one day, will keep an eye on this issue! Would go along well with the amazing documentation so far.

The typings, if and when added should be referenced from project.json
see: http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html

also this may be of interest:
https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/

Thanks for this great project!

Any progress on this issue?

Not on my part. @dotDeeka ?

No not really @koskimas . I have that repo in my account I've been using, I'm pretty sure its no where near complete. If anyone out there is interested in trying to make it more complete I'd certainly accept a PR, or even give what I have to someone if they're serious about owning it?

+1

Hello,

is there some new news about it?

@4nxiety There hasn't been anyone willing to own that part and keep updating typings when project evolves.

oh damn :/

@dotDeeka, @koskimas: my PR that adds typings, #239, is ready for review.

Fixed by #255

Awesome @mceachen, thanks for stepping up on this.

272 is merged to master. @koskimas can you close this issue?

Any chance we'll get this as part of 0.7 ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

bsdo64 picture bsdo64  路  3Comments

rickmed picture rickmed  路  4Comments

Ahlid picture Ahlid  路  3Comments

louis-etne picture louis-etne  路  4Comments