Skip to content

Commit

Permalink
fix(cli): omit debug type in bench types
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream authored and Red-Asuka committed Dec 27, 2023
1 parent 7b9e85c commit 73dce76
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cli/src/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ declare global {
protobufMessageName?: string
}

interface BenchConnectOptions extends ConnectOptions {
type OmitConnectOptions = Omit<ConnectOptions, 'debug'>

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 {
Expand All @@ -112,7 +114,10 @@ declare global {
verbose: boolean
}

type OmitSubscribeOptions = Omit<SubscribeOptions, 'format' | 'outputMode' | 'protobufPath' | 'protobufMessageName'>
type OmitSubscribeOptions = Omit<
SubscribeOptions,
'format' | 'outputMode' | 'protobufPath' | 'protobufMessageName' | 'debug'
>

interface BenchSubscribeOptions extends OmitSubscribeOptions {
count: number
Expand Down

0 comments on commit 73dce76

Please sign in to comment.