I made a atom with Recoil but I couldn't find a way to represent generic atom in Typescript.
const atom = atom<T[]>({ // <- I get error
key: 'atom',
default: []
})
const value = useRecoilValue<number[]>(atom) // <- specify actual value here (not working now)
How can I make it work?