Skip to content

Commit

Permalink
fix: added updated fastify types, updated typescript to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
srinathm85 committed Nov 8, 2023
1 parent 123398f commit 24f4646
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
{
"name": "Kyle Jeske",
"email": "kyle.jeske@walmart.com"
},
{
"name": "Srinath Muthyala",
"email": "srinath.reddy.muthyala@walmart.com"
}
],
"license": "Apache-2.0",
Expand Down Expand Up @@ -69,11 +73,11 @@
"@types/node": "^14.14.16",
"@types/sinon": "^9.0.10",
"@types/sinon-chai": "^3.2.5",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@xarc/module-dev": "^4.0.0",
"@xarc/run": "^1.0.4",
"babel-eslint": "^10.1.0",
"@babel/eslint-parser": "^7.22.15",
"chai": "^4.2.0",
"eslint": "^7.16.0",
"eslint-config-walmart": "^2.2.1",
Expand All @@ -85,13 +89,13 @@
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"run-verify": "^1.2.1",
"sinon": "^9.2.2",
"sinon": "^17.0.1",
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"superagent": "^5.0.0",
"superagent": "^7.0.0",
"ts-node": "^10.9.1",
"typedoc": "^0.23.25",
"typescript": "^4.1.3",
"typedoc": "^0.25.3",
"typescript": "^5.0.0",
"xstdout": "^0.1.1"
},
"nyc": {
Expand Down
2 changes: 1 addition & 1 deletion src/electrode-server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-magic-numbers, prefer-template, max-len, @typescript-eslint/no-var-requires */
import assert from "assert";
import fastify, { FastifyInstance, FastifyListenOptions } from "fastify";
import fastify, { FastifyListenOptions } from "fastify";
import _ from "lodash";
import Path from "path";
import { checkNodeEnv } from "./check-node-env";
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type {
FastifyPluginCallback, FastifyPluginAsync, FastifyPluginOptions, FastifyPlugin, // './types/plugin'
FastifyListenOptions, FastifyInstance, PrintRoutesOptions, // './types/instance'
FastifyLoggerOptions, FastifyBaseLogger, FastifyLoggerInstance, FastifyLogFn, LogLevel, // './types/logger'
FastifyContext, FastifyContextConfig, // './types/context'
FastifyRequestContext, FastifyContextConfig, FastifyReplyContext, // './types/context'
RouteHandler, RouteHandlerMethod, RouteOptions, RouteShorthandMethod, RouteShorthandOptions, RouteShorthandOptionsWithHandler, RouteGenericInterface, // './types/route'
FastifyRegister, FastifyRegisterOptions, RegisterOptions, // './types/register'
FastifyBodyParser, FastifyContentTypeParser, AddContentTypeParser, hasContentTypeParser, getDefaultJsonParser, ProtoAction, ConstructorAction, // './types/content-type-parser'
Expand Down
2 changes: 1 addition & 1 deletion test/sample/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config = {
port: 9000
},
plugins: {
"fastify-static": {
"@fastify/static": {
priority: 100,
options: {
root: path.join(__dirname, "../dist")
Expand Down

0 comments on commit 24f4646

Please sign in to comment.