Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix: rename unused parameters to accomodate new tsconfig.json settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fox1t committed Feb 6, 2020
1 parent 9acc309 commit 41aaa22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"update": "yarn upgrade-interactive --latest",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"test/**/*.{js,jsx,ts,tsx}\" --fix",
"test": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --no-ts --node-arg=--require=ts-node/register test/**/*.ts",
"test:ci": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --coverage-report=text-lcov --no-ts --node-arg=--require=ts-node/register test/**/*.ts | coveralls",
"test:ci": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --coverage-report=text-lcov --no-ts --node-arg=--require=ts-node/register test/**/*.ts | coveralls",
"semantic-release": "semantic-release"
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/support.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fp from 'fastify-plugin'

export default fp((fastify, opts, next) => {
export default fp((fastify, _, next) => {
fastify.decorate('someSupport', function() {
return 'hugs'
})
Expand Down
4 changes: 2 additions & 2 deletions src/services/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { nextCallback } from 'fastify-plugin'

export default (
fastify: FastifyInstance<Server, IncomingMessage, ServerResponse>,
opts: {},
_: {},
next: nextCallback,
) => {
fastify.get('/', (request, reply) => {
fastify.get('/', (_, reply) => {
reply.send({ root: true })
})
next()
Expand Down

0 comments on commit 41aaa22

Please sign in to comment.