From fd75d047aacd0cbc187ab2f561c7ebfbeaaa9e71 Mon Sep 17 00:00:00 2001 From: d-ivashchuk Date: Wed, 10 Apr 2024 13:48:36 +0200 Subject: [PATCH] fix ts errors --- .eslintrc.cjs | 1 + src/components/ui/textarea.tsx | 19 +++++++++---------- src/server/api/routers/payment-management.ts | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index eb4eaed..9ac0141 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -28,6 +28,7 @@ const config = { argsIgnorePattern: "^_", }, ], + "@typescript-eslint/non-nullable-type-assertion-style": "off", "@typescript-eslint/require-await": "off", "@typescript-eslint/no-misused-promises": [ "error", diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index b9044e0..2a73386 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -1,9 +1,8 @@ -import * as React from "react" +import * as React from "react"; -import { cn } from "~/lib/utils" +import { cn } from "~/lib/utils"; -export interface TextareaProps - extends React.TextareaHTMLAttributes {} +export type TextareaProps = React.TextareaHTMLAttributes; const Textarea = React.forwardRef( ({ className, ...props }, ref) => { @@ -11,14 +10,14 @@ const Textarea = React.forwardRef(