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

Move server files to typescript #75

Closed
wants to merge 11 commits into from
Closed

Move server files to typescript #75

wants to merge 11 commits into from

Conversation

PiotrBlachnio
Copy link

@PiotrBlachnio PiotrBlachnio commented Aug 29, 2020

  • Convert the mongoose models in server/models to Typescript
  • Refactor server/actions and move server/actions/admin.js to Typescript
  • Fix encountered type errors

Consider splitting types.ts into several files.
resolve #68

@vercel
Copy link

vercel bot commented Aug 29, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

@ML-Chen
Copy link
Contributor

ML-Chen commented Sep 14, 2020

Thanks for your contributions! There are some merge conflicts with the develop branch; can you resolve those?

@ML-Chen ML-Chen requested review from ML-Chen and PC98 September 14, 2020 19:09
await Mongo();

return Nonprofit.distinct("_id") as string[];
return await Nonprofit.distinct("_id");
Copy link
Contributor

Choose a reason for hiding this comment

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

I think as a style guideline, we're not using return await (see https://eslint.org/docs/rules/no-return-await), except in a try/catch block.

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.

[DMS] Add typing to server side code
2 participants