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

Typescript process request #38

Merged
merged 19 commits into from
Jan 3, 2021

Conversation

aspic
Copy link
Collaborator

@aspic aspic commented Jan 3, 2021

Splits up and adds types for the process request function.

  • Explicitly returns responses which seems to have been the original intention.
  • Refactors so that all "token responses" are handled by their own function (makes it easier to test down the road)
  • Moves some generic functions into tools.ts
  • Moves from prop in obj check to obj.prop check
  • Renames Error to NodeRPCError due to Error clashing with the built inn Error-type

@aspic aspic force-pushed the typescript-process-request branch from ba23d5b to e773970 Compare January 3, 2021 15:32
@Joohansson Joohansson merged commit 1c24449 into Joohansson:master Jan 3, 2021
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.

2 participants