From f1dbf3a2eb7bbc950704aa3c7a005714a13e2dc9 Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Fri, 27 Aug 2021 19:50:19 -0700 Subject: [PATCH] update templates to do import type --- ts-bootstrap/src/App.tsx | 3 ++- ts-router/src/app.tsx | 2 +- ts-router/src/pages/about.data.ts | 2 +- ts-router/src/routes.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ts-bootstrap/src/App.tsx b/ts-bootstrap/src/App.tsx index 480ba0a..c706fa1 100644 --- a/ts-bootstrap/src/App.tsx +++ b/ts-bootstrap/src/App.tsx @@ -1,4 +1,5 @@ -import { Component, onCleanup, onMount } from "solid-js"; +import { onCleanup, onMount } from "solid-js"; +import type { Component } from "solid-js"; import * as bootstrap from "bootstrap"; const App: Component = () => { diff --git a/ts-router/src/app.tsx b/ts-router/src/app.tsx index f76e7ea..f07f4fd 100644 --- a/ts-router/src/app.tsx +++ b/ts-router/src/app.tsx @@ -1,4 +1,4 @@ -import { Component } from "solid-js"; +import type { Component } from "solid-js"; import { Link, useRoutes, useLocation } from "solid-app-router"; import { routes } from "./routes"; diff --git a/ts-router/src/pages/about.data.ts b/ts-router/src/pages/about.data.ts index b4b4d0d..42d8752 100644 --- a/ts-router/src/pages/about.data.ts +++ b/ts-router/src/pages/about.data.ts @@ -1,4 +1,4 @@ -import { RouteDataFunc } from "solid-app-router"; +import type { RouteDataFunc } from "solid-app-router"; const AboutData: RouteDataFunc = () => { return { diff --git a/ts-router/src/routes.ts b/ts-router/src/routes.ts index d1a3d3d..c4ae310 100644 --- a/ts-router/src/routes.ts +++ b/ts-router/src/routes.ts @@ -1,5 +1,5 @@ import { lazy } from "solid-js"; -import { RouteDefinition } from "solid-app-router"; +import type { RouteDefinition } from "solid-app-router"; import Home from "./pages/home"; import AboutData from "./pages/about.data";