master
yutent 2025-01-02 11:03:03 +08:00
parent 48803cebfc
commit cfb8c7d553
2 changed files with 3 additions and 3 deletions

4
index.d.ts vendored
View File

@ -1,9 +1,9 @@
import { ServerRequest, ServerResponse } from 'http' import { IncomingMessage, ServerResponse } from 'http'
export default class Response { export default class Response {
status: number status: number
constructor(req: ServerRequest, res: ServerResponse) constructor(req: IncomingMessage, res: ServerResponse)
get ended(): boolean get ended(): boolean

View File

@ -1,6 +1,6 @@
{ {
"name": "@gm5/response", "name": "@gm5/response",
"version": "2.1.2", "version": "2.1.3",
"type": "module", "type": "module",
"description": "对Http的response进一步封装, 提供常用的API", "description": "对Http的response进一步封装, 提供常用的API",
"main": "index.js", "main": "index.js",