tighter types and linting
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Button, Tooltip } from "@chakra-ui/react";
|
||||
import { Button } from "@chakra-ui/react";
|
||||
import { BsPlus } from "react-icons/bs";
|
||||
import { api } from "~/utils/api";
|
||||
import { useExperiment, useHandledAsyncCallback } from "~/utils/hooks";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { api } from "~/utils/api";
|
||||
import { PromptVariant, Scenario } from "./types";
|
||||
import { type PromptVariant, type Scenario } from "./types";
|
||||
import { Center, Spinner, Text } from "@chakra-ui/react";
|
||||
import { useExperiment } from "~/utils/hooks";
|
||||
import { cellPadding } from "../constants";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useRef, useState, type DragEvent } from "react";
|
||||
import { useState, type DragEvent } from "react";
|
||||
import { type PromptVariant } from "./types";
|
||||
import { api } from "~/utils/api";
|
||||
import { useHandledAsyncCallback } from "~/utils/hooks";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RouterOutputs } from "~/utils/api";
|
||||
import { type RouterOutputs } from "~/utils/api";
|
||||
|
||||
export type PromptVariant = NonNullable<RouterOutputs["promptVariants"]["list"]>[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user