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