-
-
Save ablamunits/52fe478d5bedff237b83f2359d9ceb0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type InputWithLabelsProps = { | |
value: string[]; | |
onChange: (value: string[]) => void; | |
}; | |
// Or, create a reusable generic type | |
type ValueComponent<T> = { | |
value: T; | |
onChange: (value: T) => void; | |
} | |
type InputWithLabelsProps = ValueComponent<string[]>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment