-
Notifications
You must be signed in to change notification settings - Fork 208
Typescript: Add comments to typings #302
Comments
Hi there! I'd like to help out with this task (if still relevant), however I'm not entirely sure how to come up with proper comments ... Could you provide a little bit of guidance, please? |
Hey @Powell-v2, yes the glamorous typings could definitely still do with better comments, so if you'd be willing to help out with those that would be greatly appreciated ❤️ . A couple of initial wins here would be to add some comments to the following interfaces; withPropsglamorous/typings/glamorous.d.ts Line 118 in 7468bfc
glamorous/typings/glamorous.d.ts Line 99 in 7468bfc
propsAreCssOverridesglamorous/typings/glamorous.d.ts Line 98 in 7468bfc
glamorous/typings/glamorous.d.ts Line 117 in 7468bfc
The comments on the following page for the various options/interfaces have been derived from the glamorous documentation and may be a good starting point https://glamorous-lunch-and-learn.stackblitz.io/#5 |
Thanks @luke-john , I'm on it then : ) |
Hi @luke-john, yesterday I was trying to set up the project locally for the first time but encountered an error while running "validate" script. Asked on gitter channel, but nobody got back to me. Maybe you could advise?
|
Hey @Powell-v2, sorry about that. I suspect this is due to kcd-scripts relying on javascript features which are not present in the version of node you're using. Are you able to try with node v8? |
That helped, thanks! However validate script complained about unresolved path:
Should I ignore it or it has to be fixed before I create a PR? |
Hmm, I think prettier is used at another step in the kcd scripts so some
other things may not be working if that dependency is missing.
As it's unrelated though I'd ignore for now, we can always update the pr
later. My Mac just gave up so I won't be able to have a look at the
linting issue tonight, will investigate tomorrow if no one else has
…On Thu, 4 Jan. 2018, 8:51 pm Pavel Ermolin, ***@***.***> wrote:
That helped, thanks! However validate script complained about unresolved
path:
[lint]
[lint] /Users/powell_v2/Downloads/glamorous/other/codemods/theme-move.test.js
[lint] 3:22 error Unable to resolve path to module 'prettier' import/no-unresolved
[lint]
[lint] ✖ 1 problem (1 error, 0 warnings)
[lint]
[lint] npm run lint --silent exited with code 1
Should I ignore it or it has to be fixed before I create PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#302 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAzyjRfUnI9l1al6n4nF578TOh_c0R-tks5tHMlQgaJpZM4O_2FN>
.
|
My guess is that you're running an old version of npm that's not installing dependencies in a way that kcd-scripts expects them to be installed. Make sure you're on the latest stable node ( |
Thanks @kentcdodds, I had node v6.x - updating to the latest stable version fixed the issue 👍 |
This project is now in an unmaintained status. Please see the README for more information. |
Problem description:
The current typings for glamorous don't have much in the way of comments, it would be good to add comments to the typings to improve the user experience.
As an example WithComponent in glamorous-component.ts could be improved as follows.
Which would add the handy description to users
The text was updated successfully, but these errors were encountered: