-
-
Notifications
You must be signed in to change notification settings - Fork 70
Add jsDoc annotations to quasar.conf parameters #138
base: master
Are you sure you want to change the base?
Conversation
This will enable code inspections and autocomplete in editors that can pick it up for users that don't use typescript.
AFAIK the |
I can, but I'll need to update some projects to v2.0 version to check that. I came back to maintain some things after long time, so my setup is kinda outdated. |
You mean |
You can see this by looking at q/app v1 branch here, where they are already used:
|
Oh, right. I tried it now, it doesn't work with them - idea doesn't pick up their typings, so they are just treated as just blank functions. Only the doc comment seems to work in this case. |
I'm searching stuff on this topic. Adding JSDocs on quasar.conf file isn't a good idea as we also have these kind of TS-powered typings on boot files etc. It's a thing which must be fixed in the monorepo. Eg, would this work without any import from /**
* @param {ConfigureCallback} callback
* @return {ConfigureCallback}
*/
module.exports.configure = function (callback) {
return callback
} Can you try it out in some way? |
@panstromek any news? |
Sorry, I haven't had time to look at this more. |
This will enable code inspections and autocomplete in editors that can pick it up for users that don't use typescript.
cc @IlCallo to make sure this doesn't break typescript in some unexpected way. I don't use typescript in Quasar, so I can't tell.