Skip to content

Add TypeScript#9

Open
Linkgoron wants to merge 3 commits intoilantc:masterfrom
Linkgoron:master
Open

Add TypeScript#9
Linkgoron wants to merge 3 commits intoilantc:masterfrom
Linkgoron:master

Conversation

@Linkgoron
Copy link
Copy Markdown

TypeScript is an open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript, and adds optional static typing to the language.

Typescript is very robust, and this will really improve the code quality in this repository.

Copy link
Copy Markdown

@MoLow MoLow left a comment

Choose a reason for hiding this comment

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

Super duper important

Comment thread package-lock.json
@@ -0,0 +1,12 @@
{
"requires": true,
"lockfileVersion": 1,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
"lockfileVersion": 1,
"loackerfileVersion": 1,

Comment thread package.json
Comment thread ArithmeticServer.ts Outdated
}
else {
n = parseInt(queryData.num);
let n = parseInt(queryData.num);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please define a custom type for n

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Comment thread ArithmeticServer.ts
}
else {
n = parseInt(queryData.num);
let n:number = parseInt(queryData.num);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please extract parseInt to a function to better encapsulate how to parse ints.

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