Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Convert `caching/utils` to TypeScript (#69444)

Frasera678c2ff8ee5
diff --git a/enterprise/frontend/src/metabase-enterprise/caching/utils.js b/enterprise/frontend/src/metabase-enterprise/caching/utils.ts
similarity index 54%
rename from enterprise/frontend/src/metabase-enterprise/caching/utils.js
rename to enterprise/frontend/src/metabase-enterprise/caching/utils.ts
index 28069e133e0..e93d1737cf4 100644
--- a/enterprise/frontend/src/metabase-enterprise/caching/utils.js
+++ b/enterprise/frontend/src/metabase-enterprise/caching/utils.ts
@@ -1,4 +1,6 @@
-export function hasQuestionCacheSection(question) {
+import type Question from "metabase-lib/v1/Question";
+
+export function hasQuestionCacheSection(question: Question) {
const type = question.type();
return (