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
Parameter | Type | Description |
---|---|---|
ref | DataSourceRef | string | null | undefined |
Returns:
ref is DataSourceRef