Skip to content
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

app: switch to typescript #1534

Merged
merged 2 commits into from
Mar 23, 2022
Merged

app: switch to typescript #1534

merged 2 commits into from
Mar 23, 2022

Conversation

buck54321
Copy link
Member

Change all files to typescript and enforce typing during builds. Shared types are defined in registry.ts.

Change all files to typescript and enforce typing during builds.
Shared types are defined in registry.ts.
Comment on lines -1989 to +2121
this.candleChart.setCandles(cache, cfg)
this.candleChart.setCandles(cache, cfg, baseUnitInfo, quoteUnitInfo)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to have been a bug.

Comment on lines 746 to 877
if (baseWallet.available < mkt.cfg.lotsize) {
if (baseWallet.balance.available < mkt.cfg.lotsize) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to have also been a bug.

Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very exciting work!

This is not a proper review, just some comments in scanning through the overall changes.

client/webserver/site/webpack/dev.js Outdated Show resolved Hide resolved
client/webserver/site/webpack/prod.js Show resolved Hide resolved
client/webserver/site/tsconfig.json Show resolved Hide resolved
client/webserver/site/package-lock.json Show resolved Hide resolved
Copy link
Contributor

@martonp martonp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Will be much nicer to work on the UI from now on.

What do you think about turning strictNullChecks on? There will be many errors to fix.. I can give it a shot in another PR if you don't want to. I think it can be a pain sometimes, but it will make things a lot safer.

@chappjc chappjc merged commit 9a7c21e into decred:master Mar 23, 2022
@chappjc chappjc added this to the 0.5 milestone Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants