not_null.
not_null.
TTCTheo's Typesafe Cult
Created by not_null. on 12/5/2022 in #questions
typescript props as object or array
I mean, it doesnt even need to be a prop at this point I guess, whenever its an array of selected it will be multiple
5 replies
TTCTheo's Typesafe Cult
Created by not_null. on 12/5/2022 in #questions
typescript props as object or array
oh I didnt thought of that, then I can only pass the multiple on the one that has an array
5 replies
TTCTheo's Typesafe Cult
Created by not_null. on 12/5/2022 in #questions
typescript props as object or array
my filter in this case is of type
export type FilterType = {
selectedItems: SelectItem[]
setSelectedItems: (arg: SelectItem[]) => void
options: SelectItem[]
}
export type FilterType = {
selectedItems: SelectItem[]
setSelectedItems: (arg: SelectItem[]) => void
options: SelectItem[]
}
5 replies