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): ref is DataSourceRef;

Import

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

Parameters

Parameter Type Description
ref DataSourceRef | string | null

Returns:

ref is DataSourceRef