tweak-tools
Version:
Tweak your React projects until awesomeness
7 lines (5 loc) • 363 B
text/typescript
import type { InputWithSettings, TweakInputProps } from '../../types'
export type StringSettings = { editable?: boolean; rows?: boolean | number }
export type InternalStringSettings = { editable: boolean; rows: number }
export type StringInput = InputWithSettings<string, StringSettings>
export type StringProps = TweakInputProps<string, InternalStringSettings>