From f2998665f187d5cdd6ddc919f3200c2825cbac3c Mon Sep 17 00:00:00 2001 From: bestlyg Date: Sun, 14 Sep 2025 14:51:36 +0800 Subject: [PATCH] fix: the type of parsedOptions is incorrect. --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 9161111ed..d09ce1351 100644 --- a/index.d.ts +++ b/index.d.ts @@ -626,7 +626,7 @@ export class Method extends ReflectionObject { * @param [comment] The comment for this method * @param [parsedOptions] Declared options, properly parsed into an object */ - constructor(name: string, type: (string|undefined), requestType: string, responseType: string, requestStream?: (boolean|{ [k: string]: any }), responseStream?: (boolean|{ [k: string]: any }), options?: { [k: string]: any }, comment?: string, parsedOptions?: { [k: string]: any }); + constructor(name: string, type: (string|undefined), requestType: string, responseType: string, requestStream?: (boolean|{ [k: string]: any }), responseStream?: (boolean|{ [k: string]: any }), options?: { [k: string]: any }, comment?: string, parsedOptions?: { [k: string]: any }[]); /** Method type. */ public type: string; @@ -697,7 +697,7 @@ export interface IMethod { comment: string; /** Method options properly parsed into an object */ - parsedOptions?: { [k: string]: any }; + parsedOptions?: { [k: string]: any }[]; } /** Reflected namespace. */ @@ -898,7 +898,7 @@ export abstract class ReflectionObject { public options?: { [k: string]: any }; /** Parsed Options. */ - public parsedOptions?: { [k: string]: any[] }; + public parsedOptions?: { [k: string]: any[] }[]; /** Unique name within its namespace. */ public name: string;