-
Notifications
You must be signed in to change notification settings - Fork 949
Declare more TS typings #1672
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
Comments
Sounds like an excellent sprint day project.
…On Thu, Aug 24, 2017, 07:12 Vidar Tonaas Fauske ***@***.***> wrote:
The current typescript code has a lot of anys (both explicit and
implicit). These should be more explicitly typed, at least on the exported
functions. A more explicit typing, maybe together with strict null checks
might also reveal some bugs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1672>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AALwZudyNRuv2mZ90yNfbH7cfegDHkUAks5sbVqtgaJpZM4PBPGA>
.
|
Yes, absolutely. If anybody wants to do it, that would be perfect, if not, I'll try to squeeze it in 😉 |
Currently working on this. 😄 |
Here is the examples that needs review. #1733 |
@vidartf
That's weird, so I did an
Super weird. I did a brand new clone, install and came up with the same sort of errors. Is there something that I'm missing in the developer setup? |
Are you using the dev-install script? If not, what happens if you follow the appropriate steps manually? |
It seems a lot of this is being fixed in #1738. |
Yes, it's weird that somehow these problems are just now being noticed. |
OOoOoOh... going to check it out. |
Back on track but now I have new problems. I can add some explicit typings in so there are no implicit any's; however, some of these issues might require some additional work. For example...looking at
🤔 |
I also started to make ES6 changes to use fat arrows and |
Panel is a subclass of Widget: https://github.com/phosphorjs/phosphor/blob/23b9d075ebc5b73ab148b6ebfc20af97f85714c4/packages/widgets/src/panel.ts#L28 |
Jupyter widgets is using Typescript. Typescript is configured to compile arrow functions and I was hoping to go through and mak a pass changing var to let, using arrow functions, etc. If you want to do it, go for it! (perhaps on a separate PR to make reviewing easier?) |
I've been replacing |
Yep, we have been treating TypeScript as ES6 + type information, not really using the experimental features like decorators. |
The other es6 thing I've been experimenting with is using async/await, though I try to use it sparingly since it makes the generated javascript harder to follow/debug. |
Fixed in #1734 |
The current typescript code has a lot of anys (both explicit and implicit). These should be more explicitly typed, at least on the exported functions. A more explicit typing, maybe together with strict null checks might also reveal some bugs.
any
typings unless absolutely necessaryany
typings unless necessaryThe text was updated successfully, but these errors were encountered: