Skip to content

Commit 2b954f4

Browse files
committed
Replace TypeLiteral with another class
1 parent 4e0592c commit 2b954f4

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

specification/esql/list_queries/ListQueriesResponse.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@
2020
import { NodeId, TaskId } from '@_types/common'
2121
import { long } from '@_types/Numeric'
2222

23+
export class Body {
24+
id: long
25+
node: NodeId
26+
start_time_millis: long
27+
running_time_nanos: long
28+
query: string
29+
}
30+
2331
export class Response {
2432
body: {
25-
queries: Record<
26-
TaskId,
27-
{
28-
id: long
29-
node: NodeId
30-
start_time_millis: long
31-
running_time_nanos: long
32-
query: string
33-
}
34-
>
33+
queries: Record<TaskId, Body>
3534
}
3635
}

0 commit comments

Comments
 (0)