+
Generate TypeScript types from SQL files at build time. Full IntelliSense for query names, parameters, and results.
@@ -141,7 +141,7 @@ function IndexRoute() {built by databricks using app-kit
diff --git a/apps/dev-playground/client/src/routes/type-safety.route.tsx b/apps/dev-playground/client/src/routes/type-safety.route.tsx index 1205a1c..c7e8572 100644 --- a/apps/dev-playground/client/src/routes/type-safety.route.tsx +++ b/apps/dev-playground/client/src/routes/type-safety.route.tsx @@ -1,15 +1,15 @@ -import { createFileRoute, retainSearchParams } from "@tanstack/react-router"; -import { useEffect, useState } from "react"; -import { codeToHtml } from "shiki"; -import { Header } from "@/components/layout/header"; -import { Button } from "@/components/ui/button"; import { + Button, Card, CardContent, CardDescription, CardHeader, CardTitle, -} from "@/components/ui/card"; +} from "@databricks/app-kit-ui/react"; +import { createFileRoute, retainSearchParams } from "@tanstack/react-router"; +import { useEffect, useState } from "react"; +import { codeToHtml } from "shiki"; +import { Header } from "@/components/layout/header"; export const Route = createFileRoute("/type-safety")({ component: TypeSafetyRoute, @@ -34,17 +34,9 @@ function CodeBlock({ }).then(setHtml); }, [code, lang]); - if (!html) { - return ( -
- {code}
-
- );
- }
-
return (
);
@@ -128,14 +120,14 @@ function FlowStep({
- {codeLines.map((line) => (
-
- {line.includes("|") ? (
- <>
- {line.split("|")[0]}
-
- |
-
- {line.split("|")[1]}
- >
- ) : (
-
- {line}
-
- )}
-
- ))}
-
+
+
+
-- {type.annotation}
-
+
{type.helper}