Fixed TS Errors
Some checks failed
armco-org/shared-components/pipeline/head There was a failure building this commit

This commit is contained in:
2025-11-06 02:53:59 +05:30
parent 98b5c1b760
commit d65febfc59
3 changed files with 8 additions and 17 deletions

View File

@@ -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 <div className="ar-Tag">test</div>
}
export default Tag

View File

@@ -183,7 +183,7 @@ const TypeAhead = (props: TypeAheadProps): ReactNode => {
})
const assistiveContentRender = assistiveContent ? (
typeof assistiveContent !== "string" &&
typeof assistiveContent === "object" &&
"content" in assistiveContent &&
"onClick" in assistiveContent ? (
<Button

View File

@@ -98,6 +98,10 @@
// ArThemes,
// } from "./enums"
import { ChangeEvent, CSSProperties, FocusEvent, MouseEventHandler, ReactNode } from "react"
import { ArPlacement, ArSizes, ArThemes } from "./enums"
import { FunctionType, ObjectType } from "@armco/types"
export interface BaseProps {
children?: ReactNode
classes?: string
@@ -113,15 +117,14 @@ export interface BaseProps {
export interface FormInputProps extends BaseProps {
ariaLabel?: string
assistiveContent?:
| string
| JSX.Element
| ReactNode
| {
content: string
onClick: MouseEventHandler<HTMLButtonElement>
}
id?: string
isDisabled?: boolean
label?: string | JSX.Element
label?: ReactNode
labelClasses?: string
labelPlacement?: ArPlacement
name?: string
@@ -129,8 +132,7 @@ export interface FormInputProps extends BaseProps {
onChange?: FunctionType
onFocus?: (event: FocusEvent<unknown>) => void | FunctionType
popoverAssistiveContent?:
| string
| JSX.Element
| ReactNode
| {
content: string
onClick: MouseEventHandler<HTMLButtonElement>