Comments (4)
Not that I know of. Would you be able to help contribute some?
from sywac.
Will try to.
from sywac.
Not that I know of. Would you be able to help contribute some?
So i gave it a try and have some basic typing, more works needs to be done cleaning it up and chaining the type of the Api as new properties are added to it.
Did it by rewriting it on ts as it was easier to find errors when something was not typed correctly and for now ignoring/dont paying to much attention to private methods. Didnt do typing for utils and buffer.
Typings avaliable at: https://github.com/jose-pr/sywac under the @types folder
Also if the interface are documented better in code you get some nice documentation out of it too for free
https://jose-pr.github.io/sywac/index.html
As i get some more time i may work on it more.
from sywac.
Although the maintainers aren't focused on TypeScript typing for Sywac right now, this is a feature that's very useful to people who have a need to write their CLI in TS. If folks out there have a passion for working on these types, feel free to take a look.
(The final home for typing would probably be in the @types project, not Sywac itself, however, unless someone presents a compelling case otherwise.)
from sywac.
Related Issues (20)
- How to specify certain options are required? HOT 3
- cliMessage usage instructions for command print with wrong context? HOT 1
- How to prevent unknown options HOT 2
- Should certain stdout messages go to stderr? HOT 3
- Respect ANSI codes when applying maxWidth HOT 3
- How to provide commands with additional data? HOT 5
- Default commands with positional args behave unexpectedly HOT 6
- Control style with a flag HOT 3
- Best practice for error output? HOT 14
- Proposal for "run" handler at Api level HOT 8
- Customize "--" flag that delimits extra arguments HOT 2
- Convert kebab-case flags to camelCase HOT 2
- feature: document exit codes in help text
- Best way to add implicitcommands? HOT 3
- Prep for Hacktoberfest HOT 3
- Welcome, Hacktoberfest 2020!
- Add "--no-flag" support for Boolean types HOT 5
- Trying to get in touch regarding a security issue HOT 7
- Better error generation if file doesn't exist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sywac.