type AA = Partial<Record<'next' | 'back' | 'hideOthers', string>> type BB = Record<'next' | 'back' | 'hideOthers', string>
const aa: AA = { next: 'adads' }
type FN = (a: Record<string, string>) => void
const fx: FN = (bb) => console.log(bb)
fx(aa) // ^?
let qq = new URLSearchParams(aa)
type AA = Partial<Record<'next' | 'back' | 'hideOthers', string>>
type BB = Record<'next' | 'back' | 'hideOthers', string>
const aa: AA = {
next: 'adads'
}
type FN = (a: Record<string, string>) => void
const fx: FN = (bb) => console.log(bb)
fx(aa)
// ^?
let qq = new URLSearchParams(aa)