From 1ca96512511c855a710b21d7a5d73c0eabe36e56 Mon Sep 17 00:00:00 2001 From: "yunxia.li" Date: Fri, 17 May 2024 14:21:22 +0800 Subject: [PATCH] types: fix the inconsistent_type_definition of post and get --- src/utils/http/types.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/http/types.d.ts b/src/utils/http/types.d.ts index 44c600dc69..ef7c25f33d 100644 --- a/src/utils/http/types.d.ts +++ b/src/utils/http/types.d.ts @@ -36,12 +36,12 @@ export default class PureHttp { ): Promise; post( url: string, - params?: T, + params?: P, config?: PureHttpRequestConfig - ): Promise

; + ): Promise; get( url: string, - params?: T, + params?: P, config?: PureHttpRequestConfig - ): Promise

; + ): Promise; }