When I try using useCoookie with typescript I get errors when it returns a null value for newValue. Any idea what would be causing this?