From cfb8c7d5530a44e3943fcd53145001288339dc74 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 2 Jan 2025 11:03:03 +0800 Subject: [PATCH] fixed --- index.d.ts | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 943cde3..59922bc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,9 +1,9 @@ -import { ServerRequest, ServerResponse } from 'http' +import { IncomingMessage, ServerResponse } from 'http' export default class Response { status: number - constructor(req: ServerRequest, res: ServerResponse) + constructor(req: IncomingMessage, res: ServerResponse) get ended(): boolean diff --git a/package.json b/package.json index 6a26059..755d502 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gm5/response", - "version": "2.1.2", + "version": "2.1.3", "type": "module", "description": "对Http的response进一步封装, 提供常用的API", "main": "index.js",