Below is the function signature,
export function getVideoBooleansParamsString(videoBooleans: {
string: { label: string; value: boolean }
}): string {}
And this is the arg I am trying to pass into,
const videoBooleans = { video: { label: 'video', value: true } }
And it produce the following error,
(63,33): error TS2345: Argument of type '{ exchange: { filterType: string; filterValues: string[]; }; }' is not assignable to parameter of type '{string: FilterModel; }'.
Property 'string' is missing in type '{ exchange: { filterType: string; filterValues: string[]; }; }'.
What I intend to declare is an object whatever the key is has the content of { label: string; value: boolean }