svelte-settings
Version:
> [!WARNING] > This project is a work in progress. Do not use it in any of your projects yet.
14 lines (13 loc) • 510 B
TypeScript
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from "svelte/elements";
import { type WithElementRef } from "../../../utils.js";
type InputType = Exclude<HTMLInputTypeAttribute, "file">;
type Props = WithElementRef<Omit<HTMLInputAttributes, "type"> & ({
type: "file";
files?: FileList;
} | {
type?: InputType;
files?: undefined;
})>;
declare const Input: import("svelte").Component<Props, {}, "value" | "ref" | "files">;
type Input = ReturnType<typeof Input>;
export default Input;