Sails: Add type definitions

Created on 30 Mar 2021  路  4Comments  路  Source: balderdashy/sails

This is just an issue to track interest in type definitions for the framework.

If there is enough interest I will consider working on adding definitions as I have time. With the consent of the maintainers, this can be directly in the repo or if a separation is more desirable they can just be added to the Definitely Typed library.

https://github.com/DefinitelyTyped/DefinitelyTyped

Please let me know if this interests you by giving the thumbs up here.

I would also love some feedback from @mikermcneil

what do you think?

All 4 comments

@JohnGrisham Thanks for posting! We'll take a look as soon as possible.

In the mean time, there are a few ways you can help speed things along:

  • look for a workaround. _(Even if it's just temporary, sharing your solution can save someone else a lot of time and effort.)_
  • tell us why this issue is important to you and your team. What are you trying to accomplish? _(Submissions with a little bit of human context tend to be easier to understand and faster to resolve.)_
  • make sure you've provided clear instructions on how to reproduce the bug from a clean install.
  • double-check that you've provided all of the requested version and dependency information. _(Some of this info might seem irrelevant at first, like which database adapter you're using, but we ask that you include it anyway. Oftentimes an issue is caused by a confluence of unexpected factors, and it can save everybody a ton of time to know all the details up front.)_
  • read the code of conduct.
  • if appropriate, ask your business to sponsor your issue. _(Open source is our passion, and our core maintainers volunteer many of their nights and weekends working on Sails. But you only get so many nights and weekends in life, and stuff gets done a lot faster when you can work on it during normal daylight hours.)_
  • let us know if you are using a 3rd party plugin; whether that's a database adapter, a non-standard view engine, or any other dependency maintained by someone other than our core team. _(Besides the name of the 3rd party package, it helps to include the exact version you're using. If you're unsure, check out this list of all the core packages we maintain.)_

Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.

For help with questions about Sails, click here.

@JohnGrisham If you think you'll have the bandwidth to look after the bindings, then it'd be great to have support for Sails added externally in the DefinitivelyTyped repo. I don't use TypeScript myself for now, but since the bindings can live externally to the Sails repo, and there will be an active user of TypeScript maintaining them, I think this sounds awesome!

@JohnGrisham If you think you'll have the bandwidth to look after the bindings, then it'd be great to have support for Sails added externally in the DefinitivelyTyped repo. I don't use TypeScript myself for now, but since the bindings can live externally to the Sails repo, and there will be an active user of TypeScript maintaining them, I think this sounds awesome!

Thanks for the feedback! I was hoping to also get some feedback from the community but I haven't seen much of a desire to use Typescript with Sails. I may circle back to this when I have time or if interest does arise. I just ask that this issue be left up if nothing else but to track interest.

+1 for adding TypeScript definitions. I'm new to TS myself but enjoy the stability it provides to my code. I can't promise anything but I will try to contribute to any efforts you make @JohnGrisham. This could be an alright starting point (but think it predates v1.0): https://github.com/effervescentia/typed-sails

Was this page helpful?
0 / 5 - 0 ratings

Related issues

svmn picture svmn  路  4Comments

thomasfr picture thomasfr  路  3Comments

edy picture edy  路  4Comments

Alirezamohammadi picture Alirezamohammadi  路  4Comments

kesavkolla picture kesavkolla  路  4Comments