Skip to content

Removed use of any.#70

Merged
shubhbapna merged 9 commits intoutmgdsc:dev/gdsc-open-source-2022from
ggggg:type-enforced
Oct 31, 2022
Merged

Removed use of any.#70
shubhbapna merged 9 commits intoutmgdsc:dev/gdsc-open-source-2022from
ggggg:type-enforced

Conversation

@ggggg
Copy link
Collaborator

@ggggg ggggg commented Oct 9, 2022

Fixes

Issue #63

Proposed Changes

  • Removes usage of any

Tests

Please describe the tests that you ran to verify your changes.

  • Compiled typescript via yarn run build to make sure no type errors are caused

Referencing issue utmgdsc#63
@huonggiangbui huonggiangbui changed the base branch from main to dev/gdsc-open-source-2022 October 10, 2022 03:39
Copy link
Collaborator

@shubhbapna shubhbapna left a comment

Choose a reason for hiding this comment

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

Good job! Left some comments please review.

Also please follow the PR template especially for testing.

ggggg and others added 2 commits October 10, 2022 13:50
Co-Authored-By: Shubh Bapna <38372682+shubhbapna@users.noreply.github.com>
@ggggg ggggg requested review from embeddedt and shubhbapna and removed request for embeddedt, hiimchrislim and shubhbapna October 11, 2022 16:16
@huonggiangbui huonggiangbui requested review from embeddedt and hiimchrislim and removed request for embeddedt October 11, 2022 16:18
Copy link
Collaborator

@shubhbapna shubhbapna left a comment

Choose a reason for hiding this comment

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

Almost there :)

Is it possible to remove undefined from the getPollStatus, getResult and getUser arguments? This is because in the routers we are already performing a type check and are returning a 400 if it fails. So if we can combine the type check with the check for undefined, we can reduce the duplicate code

@ggggg
Copy link
Collaborator Author

ggggg commented Oct 17, 2022

Is it possible to remove undefined from the getPollStatus, getResult and getUser arguments?

Good catch! Fixed :)

@ggggg ggggg requested review from shubhbapna and removed request for hiimchrislim October 17, 2022 03:26
Copy link
Collaborator

@shubhbapna shubhbapna left a comment

Choose a reason for hiding this comment

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

Sorry for being picky

@ggggg ggggg requested a review from shubhbapna October 25, 2022 17:10
Copy link
Collaborator

@shubhbapna shubhbapna left a comment

Choose a reason for hiding this comment

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

LGTM!

@shubhbapna shubhbapna merged commit 2fa05ac into utmgdsc:dev/gdsc-open-source-2022 Oct 31, 2022
@ggggg ggggg deleted the type-enforced branch October 31, 2022 02:39
ggggg added a commit to ggggg/PollVotingSystem that referenced this pull request Oct 31, 2022
This was missed in utmgdsc#70 after pull request suggestions.
@ggggg ggggg mentioned this pull request Oct 31, 2022
11 tasks
ggggg added a commit to ggggg/PollVotingSystem that referenced this pull request Oct 31, 2022
This was missed in utmgdsc#70 after pull request suggestions.
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.

3 participants