Skip to content

Commit b621e70

Browse files
committed
Use Record type instead of interface
1 parent c87853f commit b621e70

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/types.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import { DataQuery, DataSourceJsonData } from '@grafana/data';
22

3-
export interface ContextHTTPVars {
4-
[key: string]: string;
5-
}
6-
export interface Context {
7-
[key: string]: ContextHTTPVars;
8-
}
3+
export type ContextHTTPVars = Record<string, string>;
4+
5+
export type Context = Record<string, ContextHTTPVars>;
96

107
export type Presentation = 'lines' | 'sum' | 'average' | 'min' | 'max';
118

0 commit comments

Comments
 (0)