From bf646be72216d4d68099061c15538194e9c5b717 Mon Sep 17 00:00:00 2001 From: Quinta <0pietroquintavalle0@gmail.com> Date: Mon, 23 Sep 2024 14:11:47 +0200 Subject: [PATCH] fucking type safety --- app/layout.tsx | 3 ++- components/ui/input.tsx | 3 +-- components/ui/textarea.tsx | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 14f57b9..7dd0d20 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata } from "next"; import localFont from "next/font/local"; import "./globals.css"; +import React from "react"; const geistSans = localFont({ src: "./fonts/GeistVF.woff", @@ -26,7 +27,7 @@ export default function RootLayout({ return ( {children} diff --git a/components/ui/input.tsx b/components/ui/input.tsx index a921025..c73dd8c 100644 --- a/components/ui/input.tsx +++ b/components/ui/input.tsx @@ -2,8 +2,7 @@ import * as React from "react" import { cn } from "@/lib/utils" -export interface InputProps - extends React.InputHTMLAttributes {} +export type InputProps = React.InputHTMLAttributes const Input = React.forwardRef( ({ className, type, ...props }, ref) => { diff --git a/components/ui/textarea.tsx b/components/ui/textarea.tsx index 9f9a6dc..12c9136 100644 --- a/components/ui/textarea.tsx +++ b/components/ui/textarea.tsx @@ -2,8 +2,7 @@ import * as React from "react" import { cn } from "@/lib/utils" -export interface TextareaProps - extends React.TextareaHTMLAttributes {} +export type TextareaProps = React.TextareaHTMLAttributes const Textarea = React.forwardRef( ({ className, ...props }, ref) => {