Narrowing function return type
true
as an argument causes the function to return a number
while passing false
causes it to return a boolean
. The inferred return type is however always number | boolean
regardless of what argument is passed.
I guess this is just a quirk with TS not narrowing function signature based on arguments passed. Is it possible to achieve this however in an elegant way? 🙂
```...Generate same OTP code for demo account for app store reviewing purposes? (Convex Auth)
Trying to follow this doc for aggregate for page based pagination

Monorepo
Data center locations
two reactclient
I want to put CODEOWNERS files in my /convex - but how?
Convex Stuck Running 'npx convex dev'
Type instantiation is excessively deep and possibly infinite.
Type instantiation is excessively deep and possibly infinite
I’m new to TypeScript and don’t have much experience with its type system. My project has a complex directory structure with multiple levels of nesting, and I suspect the deeply nested structure might be causing the issue.
...Filtering a many:many ENT Edge
how to query all rows (recursively) ?
Set environment variables in an action
Validate Id<"tableName"> or Doc<"tableName"> on the client or server?
Issue with uploadstuff Package Breaking Builds on Convex and Vercel
Suboptimal Caching Behavior for Public Queries
isAuthenticated sometimes not true
i cant catch bug why sometimes after successful convex-dev react signin method auth.isAuthenticated is not set to true. it happens randomly like in 1/50 cases. But it for sure plugin problem everything is implemented correctly on client side...
Convex in Release Build (React Native)
Using AuthJS, how to get current user in route.ts in NextJS.