From 73dce76e506222ee8ab6d928bbdb1db3647c7a7a Mon Sep 17 00:00:00 2001 From: YuShifan <894402575bt@gmail.com> Date: Wed, 27 Dec 2023 17:25:15 +0800 Subject: [PATCH] fix(cli): omit debug type in bench types --- cli/src/types/global.d.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cli/src/types/global.d.ts b/cli/src/types/global.d.ts index 00f36542f..d0336497b 100644 --- a/cli/src/types/global.d.ts +++ b/cli/src/types/global.d.ts @@ -95,14 +95,16 @@ declare global { protobufMessageName?: string } - interface BenchConnectOptions extends ConnectOptions { + type OmitConnectOptions = Omit + + interface BenchConnectOptions extends OmitConnectOptions { count: number interval: number } type OmitPublishOptions = Omit< PublishOptions, - 'stdin' | 'multiline' | 'protobufPath' | 'protobufMessageName' | 'format' + 'stdin' | 'multiline' | 'protobufPath' | 'protobufMessageName' | 'format' | 'debug' > interface BenchPublishOptions extends OmitPublishOptions { @@ -112,7 +114,10 @@ declare global { verbose: boolean } - type OmitSubscribeOptions = Omit + type OmitSubscribeOptions = Omit< + SubscribeOptions, + 'format' | 'outputMode' | 'protobufPath' | 'protobufMessageName' | 'debug' + > interface BenchSubscribeOptions extends OmitSubscribeOptions { count: number