From b7156ef2c2f3a82c957e782250680c4291cdb95a Mon Sep 17 00:00:00 2001 From: Oscar Kilhed Date: Wed, 27 Mar 2024 12:35:06 +0100 Subject: [PATCH] Dashboard scenes: Export isExpressionReference to be accessible from scenes (#85228) Export isExpressionRef to be accessible from scenes --- packages/grafana-runtime/src/index.ts | 1 + packages/grafana-runtime/src/utils/DataSourceWithBackend.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/grafana-runtime/src/index.ts b/packages/grafana-runtime/src/index.ts index 4061ac76f2f..f5fc864e640 100644 --- a/packages/grafana-runtime/src/index.ts +++ b/packages/grafana-runtime/src/index.ts @@ -17,6 +17,7 @@ export { type HealthCheckResultDetails, HealthStatus, type StreamOptionsProvider, + isExpressionReference, } from './utils/DataSourceWithBackend'; export { toDataQueryResponse, diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index 74f76dbb7c8..f867d1762cf 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -43,7 +43,7 @@ export const ExpressionDatasourceRef = Object.freeze({ }); /** - * @internal + * @public */ export function isExpressionReference(ref?: DataSourceRef | string | null): boolean { if (!ref) {