Skip to content

Commit

Permalink
fix: name conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Sep 7, 2023
1 parent f197060 commit 52f70ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion components/select/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react'
import { InputEventHandler } from '@dhis2-ui/input'
import { LayerBackdropClickEvent } from '@dhis2-ui/layer'
import { CheckboxProps } from '@dhis2-ui/checkbox'

Expand Down
8 changes: 4 additions & 4 deletions components/text-area/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ export interface TextAreaEventPayload {
name?: string
}

export type InputEventHandler<Event extends React.SyntheticEvent> = (
export type TextAreaEventHandler<Event extends React.SyntheticEvent> = (
payload: TextAreaEventPayload,
event: Event
) => void

type TextAreaFocusHandler = InputEventHandler<
type TextAreaFocusHandler = TextAreaEventHandler<
React.FocusEvent<HTMLInputElement>
>
type TextAreaChangeHandler = InputEventHandler<
type TextAreaChangeHandler = TextAreaEventHandler<
React.ChangeEvent<HTMLInputElement>
>
type TextAreaKeyHandler = InputEventHandler<
type TextAreaKeyHandler = TextAreaEventHandler<
React.KeyboardEvent<HTMLInputElement>
>

Expand Down

0 comments on commit 52f70ad

Please sign in to comment.