Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit 7cc9ea5

Browse files
committed
Import all types in express/src/index.ts directly from express
Shouldn't change much in practice. `express.RequestHandler` extends `express-serve-static-core.RequestHandler` and is quite similar.
1 parent 7394ed2 commit 7cc9ea5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/express/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { milliSecondTimer, sendApilyticsMetrics } from '@apilytics/core';
2-
import type { NextFunction, Request, Response } from 'express';
3-
import type { RequestHandler } from 'express-serve-static-core';
2+
import type { NextFunction, Request, RequestHandler, Response } from 'express';
43

54
export const apilyticsMiddleware = (
65
apiKey: string | undefined,

0 commit comments

Comments
 (0)