API Reference@grafana/dataisDataSourceRef

isDataSourceRef() function

isDataSourceRef() function

Returns true if the argument is a DataSourceRef

Signature

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

Import

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

Parameters

ParameterTypeDescription
refDataSourceRef | string | null | undefined

Returns:

ref is DataSourceRef