diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index afb8743..d7c4dd3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,7 +27,7 @@ jobs: # Run linting and typechecking - run: pnpm run lint - # - run: pnpm run typecheck + - run: pnpm run typecheck # # Run tests # - run: pnpm run test diff --git a/components/module/List.vue b/components/module/List.vue index 8256b98..fd0b3f6 100644 --- a/components/module/List.vue +++ b/components/module/List.vue @@ -5,13 +5,15 @@ import type { AppRouter } from '@/server/trpc/routers' type RouterOutput = inferRouterOutputs type ModuleOutput = RouterOutput['module']['get'] type FlowOutput = RouterOutput['flow']['get'] +type Module = Exclude +type Flow = Exclude interface Props { - module: ModuleOutput + module: Module } const props = defineProps() -const flow = inject('flow') as FlowOutput +const flow = inject('flow') as Flow const text = extractTextFromHTML(props.module.content) @@ -31,7 +33,7 @@ const text = extractTextFromHTML(props.module.content) />

{{ props.module.title }} @@ -39,7 +41,7 @@ const text = extractTextFromHTML(props.module.content)
diff --git a/components/module/Project.vue b/components/module/Project.vue index 7ded282..9292a53 100644 --- a/components/module/Project.vue +++ b/components/module/Project.vue @@ -4,24 +4,23 @@ import type { AppRouter } from '@/server/trpc/routers' type RouterOutput = inferRouterOutputs type ModuleOutput = RouterOutput['module']['get'] +type Module = Exclude interface Props { - module: ModuleOutput + module: Module } const props = defineProps()