loopback icon indicating copy to clipboard operation
loopback copied to clipboard

TypeScript type definition

Open davetayls opened this issue 11 years ago • 22 comments

Before I build one manually is it possible to create a TypeScript definitions file from your api docs, even one to then edit and tweak manually?

davetayls avatar May 29 '15 08:05 davetayls

It should be possible to write a script that uses our doc module to build up a TypeScript definition. Unfortunately our doc module isn't open source. You can most likely parse our docs with dox and use that output.

Keep us updated, sounds like an interesting idea. Maybe we can automate it?

ritch avatar May 29 '15 21:05 ritch

Thanks @ritch I'll have a go, I would love it if you were able to automate it to keep it up to date with changes. Let me know if you guys would be willing to have a go

davetayls avatar May 30 '15 17:05 davetayls

This is a great idea. I see the issue was closed- is a TypeScript definition file now available somewhere? Thanks

kierer avatar Aug 15 '15 00:08 kierer

I never managed to get this sorted but would love to hear if someone does

davetayls avatar Aug 15 '15 08:08 davetayls

I would love to see this. Anybody seen a TSD around for loopback?

JonEustace avatar Aug 25 '15 02:08 JonEustace

Why was this closed? I don't see a definition file in the DefinitelyTyped repo. Can we reopen this?

rob3c avatar Sep 16 '15 18:09 rob3c

This is becoming a bigger issue by the day around here; encouraged all the more by Google's own adoption of TS in Angular2, our team has pretty much committed to "TS-wherever-possible" and there's a push by some team members to re-evaluate other options (e.g., Meteor) which we had previously passed on in favor of LB for projects that are on-deck. ... not the call I'd make, but the availability of a TSD (preferably one maintained by the LB team) would certainly help those of us making the case for LB in the near term.

kierer avatar Sep 16 '15 19:09 kierer

@ritch Was this meant to be closed? Should we reopen it?

superkhau avatar Sep 22 '15 03:09 superkhau

What about generating the TSD for shared methods only? We have all the information for such signatures as part of the remoting metadata.

raymondfeng avatar Sep 22 '15 04:09 raymondfeng

I've created a new issue to track the development of this feature. +1 in that thread would be nice if you want to see it done (helps us prioritize).

https://github.com/strongloop/loopback/issues/1692

ritch avatar Sep 22 '15 12:09 ritch

+1

tjosbon avatar Mar 04 '16 14:03 tjosbon

+1. Both hapi & koa have TS definitions. Our firm is thinking of choosing these instead of loopback.

RichardJECooke avatar May 05 '16 09:05 RichardJECooke

@RichardJECooke Please +1 at #1692

superkhau avatar May 05 '16 18:05 superkhau

+1

lucaslopez avatar Jun 30 '16 08:06 lucaslopez

+1

zkuang avatar Jul 26 '16 02:07 zkuang

+1

mjerez-radical avatar Aug 29 '16 16:08 mjerez-radical

+1

amay0048 avatar Sep 10 '16 12:09 amay0048

+1

k1ng440 avatar Sep 22 '16 08:09 k1ng440

+1

tallesborges avatar Oct 24 '16 18:10 tallesborges

+1

microsoftly avatar Dec 22 '16 22:12 microsoftly