fix(ts,glama): annotate express app type explicitly to fix pnpm TS2742 error
This commit is contained in:
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
import { Request } from "express";
|
import { type Express, type Request } from "express";
|
||||||
import { EnvSource } from "./config.js";
|
import { EnvSource } from "./config.js";
|
||||||
/**
|
/**
|
||||||
* F10 Fix: Pull client courier keys strictly from request headers.
|
* F10 Fix: Pull client courier keys strictly from request headers.
|
||||||
* Query parameters are completely ignored to prevent credential leakage in URL logs.
|
* Query parameters are completely ignored to prevent credential leakage in URL logs.
|
||||||
*/
|
*/
|
||||||
export declare function keysFromRequest(req: Request): EnvSource;
|
export declare function keysFromRequest(req: Request): EnvSource;
|
||||||
export declare const app: import("express-serve-static-core").Express;
|
export declare const app: Express;
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
import express, { Request, Response } from "express";
|
import express, { type Express, type Request, type Response } from "express";
|
||||||
import { randomUUID } from "node:crypto";
|
import { randomUUID } from "node:crypto";
|
||||||
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
||||||
import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
|
import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
|
||||||
@@ -127,7 +127,7 @@ export function keysFromRequest(req: Request): EnvSource {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const app = express();
|
export const app: Express = express();
|
||||||
app.use(express.json({
|
app.use(express.json({
|
||||||
limit: "1mb",
|
limit: "1mb",
|
||||||
verify: (req: any, _res, buf) => {
|
verify: (req: any, _res, buf) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user