isDataSourceRef() function

isDataSourceRef() function

Returns true if the argument is a DataSourceRef

Signature

  1. export declare function isDataSourceRef(ref: DataSourceRef | string | null | undefined): ref is DataSourceRef;

Import

  1. import { isDataSourceRef } from '@grafana/data';

Parameters

ParameterTypeDescription
refDataSourceRef | string | null | undefined

Returns:

ref is DataSourceRef