Removed .d imports

This commit is contained in:
Martin Berg Alstad 2023-05-15 23:26:23 +02:00
parent fb391a5808
commit ae1ec571f8
15 changed files with 4 additions and 21 deletions

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { type Component, createSignal } from "solid-js";
import type { ButtonProps, TitleProps } from "../types/types";
interface SwitchProps extends TitleProps {
defaultValue?: boolean,

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { CardProps } from "../types/types";
import { Link } from "./link";
const Card: Component<CardProps> = (

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { Dialog, DialogDescription, DialogPanel, DialogTitle } from "solid-headless";
import type { TitleProps } from "../types/types";
import { Component, createEffect, createSignal, JSX } from "solid-js";
import { Button } from "./button";
import { Portal } from "solid-js/web";

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { SimpleProps } from "../types/types";
import { Link } from "./link";
const Footer: Component<SimpleProps> = ({ className }) => (

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { type Component, Show } from "solid-js";
import type { TitleProps } from "../types/types";
import { Icon } from "solid-heroicons";
import { chevronLeft } from "solid-heroicons/solid";
import { Link } from "./link";

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { type Component, createSignal, JSX, onMount, Setter, Show } from "solid-js";
import type { InputProps } from "../types/types";
import Row from "./row";
import { Icon } from "solid-heroicons";
import { magnifyingGlass, xMark } from "solid-heroicons/solid";

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { TitleProps } from "../types/types";
import Header from "./header";
import Footer from "./footer";

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { LinkProps } from "../types/types";
export const Link: Component<LinkProps> = (
{

View File

@ -1,5 +1,4 @@
/* @refresh reload */
import type { TitleProps } from "../types/types";
import { type Component, createEffect, createSignal, JSX, Show } from "solid-js";
import { Button } from "./button";

View File

@ -1,7 +1,6 @@
/* @refresh reload */
import { Disclosure, DisclosureButton, DisclosurePanel, Transition } from "solid-headless";
import { Icon } from "solid-heroicons";
import type { ChildProps, TitleProps } from "../types/types";
import { type Component, JSX } from "solid-js";
import { chevronUp } from "solid-heroicons/solid";

View File

@ -1,6 +1,5 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { ChildProps } from "../types/types";
/**
* A row that centers its children

View File

@ -1,6 +1,4 @@
/* @refresh reload */
import type { SimpleProps } from "../types/types";
import type { Table } from "../types/types";
import { For } from "solid-js/web";
import { type Component } from "solid-js";

View File

@ -5,7 +5,6 @@ import "./index.css";
import { type Component } from "solid-js";
import Layout from "./components/layout";
import Card from "./components/card";
import type { CardProps } from "./types/types";
import { Link } from "./components/link";
const apiRoot = "https://api.martials.no";

View File

@ -6,7 +6,6 @@ import TruthTable from "./components/truth-table";
import { InfoBox, MyDisclosure, MyDisclosureContainer } from "./components/output";
import { diffChars } from "diff";
import MyMenu from "./components/menu";
import type { FetchResult, OrderOfOperation } from "./types/types";
import { type Accessor, type Component, createSignal, JSX, onMount, Show } from "solid-js";
import { For, render } from "solid-js/web";
import Row from "./components/row";

10
src/types/types.d.ts vendored
View File

@ -1,15 +1,13 @@
import { JSX } from "solid-js";
interface SimpleProps {
name?: string;
className?: string,
style?: JSX.CSSProperties,
style?: import("solid-js").JSX.CSSProperties,
id?: string,
title?: string,
}
interface ChildProps extends SimpleProps {
children?: JSX.Element,
children?: import("solid-js").JSX.Element,
}
interface LinkProps extends ChildProps {
@ -23,12 +21,12 @@ interface TitleProps extends ChildProps {
}
interface ButtonProps extends TitleProps {
onClick?: JSX.EventHandlerUnion<HTMLButtonElement, MouseEvent>,
onClick?: import("solid-js").JSX.EventHandlerUnion<HTMLButtonElement, MouseEvent>,
type?: "button" | "submit" | "reset",
}
interface InputProps<T> extends TitleProps {
onInput?: JSX.EventHandlerUnion<T, Event>,
onInput?: import("solid-js").JSX.EventHandlerUnion<T, Event>,
placeholder?: string,
required?: boolean,
type?: string,