This repository was archived by the owner on Mar 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +16
-17
lines changed Expand file tree Collapse file tree 7 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 88 "rules" : {
99 "recommended" : true ,
1010 "suspicious" : {
11- "noEmptyInterface" : " off" ,
1211 "noArrayIndexKey" : " off"
1312 },
1413 "a11y" : {
Original file line number Diff line number Diff line change @@ -462,12 +462,12 @@ function Input<T extends string | NumberInputType>({
462462 )
463463}
464464
465- export interface TextInputProps extends BaseInputProps < string > { }
465+ export type TextInputProps = BaseInputProps < string >
466466export const TextInput : FC < TextInputProps > = props => (
467467 < Input { ...props } type = "text" />
468468)
469469
470- export interface NumberInputProps extends BaseInputProps < NumberInputType > { }
470+ export type NumberInputProps = BaseInputProps < NumberInputType >
471471export const NumberInput : FC < NumberInputProps > = props => (
472472 < Input { ...props } type = "number" />
473473)
Original file line number Diff line number Diff line change @@ -217,17 +217,16 @@ const getKeyCodeValue = (key: string) => {
217217 }
218218}
219219
220- export interface BaseTimeInputProps
221- extends Omit <
222- TextInputProps ,
223- | 'value'
224- | 'onValueChange'
225- | 'onChange'
226- | 'ref'
227- | 'width'
228- | 'maxLength'
229- | 'placeholder'
230- > { }
220+ export type BaseTimeInputProps = Omit <
221+ TextInputProps ,
222+ | 'value'
223+ | 'onValueChange'
224+ | 'onChange'
225+ | 'ref'
226+ | 'width'
227+ | 'maxLength'
228+ | 'placeholder'
229+ >
231230
232231export interface TimeInputValues {
233232 readonly hour ?: number
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ import { Theme } from '../src/theme'
44
55// and extend them!
66declare module 'styled-components' {
7+ // biome-ignore lint/suspicious/noEmptyInterface: used to import from styled-components
78 export interface DefaultTheme extends Theme { }
89}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export interface ComponentDoc {
2323 readonly props : Props
2424}
2525
26- export interface Props extends StringIndexedObject < PropItem > { }
26+ export type Props = StringIndexedObject < PropItem >
2727
2828export interface PropItem {
2929 readonly name : string
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ import { Theme } from 'practical-react-components-core'
44
55// and extend them!
66declare module 'styled-components' {
7- export interface DefaultTheme extends Theme { }
7+ export type DefaultTheme = Theme
88}
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ import { Theme } from 'practical-react-components-core'
44
55// and extend them!
66declare module 'styled-components' {
7- export interface DefaultTheme extends Theme { }
7+ export type DefaultTheme = Theme
88}
You can’t perform that action at this time.
0 commit comments