Removed .d imports
This commit is contained in:
parent
fb391a5808
commit
ae1ec571f8
@ -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,
|
||||
|
@ -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> = (
|
||||
|
@ -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";
|
||||
|
@ -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 }) => (
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* @refresh reload */
|
||||
import { type Component } from "solid-js";
|
||||
import type { LinkProps } from "../types/types";
|
||||
|
||||
export const Link: Component<LinkProps> = (
|
||||
{
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* @refresh reload */
|
||||
import { type Component } from "solid-js";
|
||||
import type { ChildProps } from "../types/types";
|
||||
|
||||
/**
|
||||
* A row that centers its children
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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";
|
||||
|
@ -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
10
src/types/types.d.ts
vendored
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user