Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
x0k committed Jul 29, 2024
1 parent 3c3b3a4 commit df2b5ef
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/ppp/src/adapters/runtime/descriptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ComponentType, SvelteComponent } from "svelte";
import type { Component } from "svelte";

import { Language } from "@/shared/languages";

Expand All @@ -11,10 +11,7 @@ import RustDescription from "./rust/description.svelte";
import GleamDescription from "./gleam/description.svelte";
import DotnetDescription from "./dotnet/description.svelte";

export const DESCRIPTIONS: Record<
Language,
ComponentType<SvelteComponent<Record<string, never>>>
> = {
export const DESCRIPTIONS: Record<Language, Component> = {
[Language.JavaScript]: JsDescription,
[Language.TypeScript]: TsDescription,
[Language.PHP]: PhpDescription,
Expand Down

0 comments on commit df2b5ef

Please sign in to comment.