-
Notifications
You must be signed in to change notification settings - Fork 52
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
(Support?) Type errors for dev environment & future plans #85
Comments
Hi @max-scopp! Seems like you closed this issue. I guess it is still relevant? Were you able to get the environment running? If not, what kind of type errors are you receiving? |
Thanks for your Response, I've gotten myself a drink yesterday and reworked the whole template. I was able to get the environment running and no longer have any errors, if I remember right, they where just jest-specific type problems anyways. Can't reproduce anymore. After checking out the master I now only get Anyways, my Version now includes the following features:
I was wondering why specifically the decision was to use Today I'm continuing with cleanup, if you're interested in my version, just hit me up. Sadly I would then need an e-mail to invite you on our internal gitlab. I bet I've gotten something wrong with the But it works smooth so far. Would love if you take a look at it! |
Cool! Re. superagent - This is from the original fork, and we havent removed it. In a separate project I am working on using this project we use custom templates where we have removed the superagent usage and rather use XMLHttpRequests. The use of fetch also makes sense, but comes at the cost of needing to polyfill for IE. I don't feel strongly for keeping superagent (except backwards compatibility). @scottc, @Markionium, @Kosta-Github - Any opinions here? Re. Making SwaggerResponse a class - Does it have to be a class? Making it a class has the downside of resulting in a significantly higher bundle size than just being a simple type Would be cool to try to incorporate your improvements into the project (at least most of them)! |
RE: XMLHttpRequests I'm using axios in my custom template. There are some other similar lightweight isomorphic-fetch polyfill libraries, I'm not particularly attached to any specific implementation lib either. As long as it works in all commonly used browsers, and other such run-time environments. RE: code generation. My preference would be using static types, and producing as little javascipt code as possible, to reduce bundle sizes. |
I'm looking for a good fork of wcandillon's work. This seems a good place to start off - especially since it's hosted by an Microsoft member.
Sadly, I'm required to have an URL-to-method lookup which may (probably) requires a small rewrite of this module. I'm also required to have properly used return types (partly true of #77).
Per readme, I've been trying to fire up the dev environment using
npm run build:watch
, which works, but I'm getting a ton of type errors.At this point in time, I do not know if this is on a todo - wasn't able to find any hints on this.
I will be able to fix this, but I'd like to have this merged into here, rather than creating yet another fork that get's on npm.
In any case, I have to fix this nevertheless before implementing my wishes.
In case my feature requirements do not meet your opinion, I'd like to keep the core for the both of us the same (and putting my feature on-top).
Looking forward for clarification. Would love to contribute.
The text was updated successfully, but these errors were encountered: