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

style: remove eslint warnings #126

Merged
merged 7 commits into from
Apr 22, 2020
Merged

style: remove eslint warnings #126

merged 7 commits into from
Apr 22, 2020

Conversation

SantiMA10
Copy link
Contributor

Resolves #50

@SantiMA10 SantiMA10 requested a review from orestes April 22, 2020 19:13
@@ -26,7 +27,10 @@ export const routes = (config: Config): ServerRoute[] => [
request: Request,
h: ResponseToolkit,
): Promise<ResponseObject> => {
const { payload, headers } = request as { payload: any; headers: any };
const { payload, headers } = (request as unknown) as {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we use the Request type from hapi?

@orestes orestes merged commit ec07b98 into master Apr 22, 2020
@orestes orestes deleted the 50-remove-warnings branch April 22, 2020 19:46
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.

Migrate to TypeScript
2 participants