From d65febfc59443163f519c680adbc59ab707de31c Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Thu, 6 Nov 2025 02:53:59 +0530 Subject: [PATCH] Fixed TS Errors --- src/Tag.tsx | 11 ----------- src/TypeAhead.tsx | 2 +- src/types.interface.ts | 12 +++++++----- 3 files changed, 8 insertions(+), 17 deletions(-) delete mode 100644 src/Tag.tsx diff --git a/src/Tag.tsx b/src/Tag.tsx deleted file mode 100644 index b68f54c..0000000 --- a/src/Tag.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { ReactNode } from "react" -import type { TagProps as TagProps_ } from "./types.interface" -import "./Tag.component.scss" - -export interface TagProps extends BaseProps { } - -const Tag = (props: TagProps): ReactNode => { - return
test
-} - -export default Tag diff --git a/src/TypeAhead.tsx b/src/TypeAhead.tsx index 75cb01b..5a174fa 100755 --- a/src/TypeAhead.tsx +++ b/src/TypeAhead.tsx @@ -183,7 +183,7 @@ const TypeAhead = (props: TypeAheadProps): ReactNode => { }) const assistiveContentRender = assistiveContent ? ( - typeof assistiveContent !== "string" && + typeof assistiveContent === "object" && "content" in assistiveContent && "onClick" in assistiveContent ? (