Skip to content

Commit

Permalink
hush typecheck hush
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenglund committed Jan 31, 2024
1 parent a3715eb commit cc310cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class DataSource extends DataSourceWithBackend<RocksetQuery, RocksetDataS
}

this.variables = {
editor: VariableQueryEditor,
editor: VariableQueryEditor as any,
getType: () => VariableSupportType.Custom,
query: (q: DataQueryRequest<RocksetQuery>) => this.query({
...q,
Expand Down
6 changes: 1 addition & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ import {DataSourcePlugin} from '@grafana/data';
import {DataSource} from './datasource';
import {ConfigEditor} from './components/ConfigEditor';
import {QueryEditor} from './components/QueryEditor';
import {VariableQueryEditor} from 'components/VariableQueryEditor';
import {RocksetDataSourceOptions, RocksetQuery} from './types';

export const plugin = new DataSourcePlugin<DataSource, RocksetQuery, RocksetDataSourceOptions>(DataSource)
.setConfigEditor(ConfigEditor)
.setQueryEditor(QueryEditor)
// TODO this should be replaced by DataSourceVariableSupport
// .setVariableQueryEditor(VariableQueryEditor)
;
.setQueryEditor(QueryEditor);

0 comments on commit cc310cf

Please sign in to comment.