rishsane
rishsane
CCConvex Community
Created by 🐐GoatGuy🐐 on 2/14/2025 in #support-community
Weird type error when searching by Index
We can't console.log(result)
13 replies
CCConvex Community
Created by 🐐GoatGuy🐐 on 2/14/2025 in #support-community
Weird type error when searching by Index
Right. But there are some special cases.
function fail(): never {
throw new Error("This function never returns!");
}

const result = fail(); // Type of `result` is `never`
function fail(): never {
throw new Error("This function never returns!");
}

const result = fail(); // Type of `result` is `never`
13 replies
CCConvex Community
Created by 🐐GoatGuy🐐 on 2/14/2025 in #support-community
Weird type error when searching by Index
Do you know what is never type?
13 replies
CCConvex Community
Created by 🐐GoatGuy🐐 on 2/14/2025 in #support-community
Weird type error when searching by Index
It's kind of special thing
13 replies
CCConvex Community
Created by 🐐GoatGuy🐐 on 2/14/2025 in #support-community
Weird type error when searching by Index
Yup there is never type in typescript bro
13 replies
CCConvex Community
Created by 🐐GoatGuy🐐 on 2/14/2025 in #support-community
Weird type error when searching by Index
never type?
13 replies