function getKey(key: 'theme'): theme | null;
function getKey(key: 'auth'): auth | null;export type StoreTypesRoot = {
theme: 'light' | 'dark' | null
auth: 'true' | 'false' | null
}
getKey('theme') :AsyncStoreTypesList<StoreTypesRoot, 'theme'> {
a: 'STRING',
b: [
{...},
{...}
]
}{
a: 'STRING'
b: 'STRING'
}