import { DataSourceVariableModel, VariableRefresh } from 'app/features/variables/types'; import { MultiVariableBuilder } from './multiVariableBuilder'; export class DatasourceVariableBuilder extends MultiVariableBuilder { withRefresh(refresh: VariableRefresh) { this.variable.refresh = refresh; return this; } withRegEx(regex: any) { this.variable.regex = regex; return this; } }