Open Issues Need Help
View All on GitHubAI Summary: Fix the TypeScript type definition for the `selectFirst` function in the Radashi library. The current type definition incorrectly includes `null` in the return type when the `condition` parameter is undefined, even though the function should return `undefined` in such cases if no non-nullish value is found. The fix should ensure the return type accurately reflects the function's behavior, excluding `null` unless a custom `condition` is provided that explicitly allows it.
The modern, community-first TypeScript toolkit with all of the fast, readable, and minimal utility functions you need. Type-safe, dependency-free, tree-shakeable, fully tested.
AI Summary: The task is to fix a type guard in the Radashi TypeScript utility library. The `isIntString` function incorrectly narrows the type of the input string to `never` in the `else` block of a conditional statement, leading to a TypeScript error. The solution involves modifying the type guard to correctly handle cases where the input is not an integer string.
The modern, community-first TypeScript toolkit with all of the fast, readable, and minimal utility functions you need. Type-safe, dependency-free, tree-shakeable, fully tested.