mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
10 lines
327 B
TypeScript
10 lines
327 B
TypeScript
import { QueryVariableModel, VariableModel, AdHocVariableModel } from '../templating/types';
|
|
|
|
export const isQuery = (model: VariableModel): model is QueryVariableModel => {
|
|
return model.type === 'query';
|
|
};
|
|
|
|
export const isAdHoc = (model: VariableModel): model is AdHocVariableModel => {
|
|
return model.type === 'adhoc';
|
|
};
|