mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
refactor: migrate to props and runes
this was done using sv migrate and a bit of ai to fully migrate
This commit is contained in:
@@ -69,7 +69,8 @@ function parseBooleanClaim(value: unknown) {
|
||||
}
|
||||
|
||||
function parseNumberClaim(value: unknown): number | null {
|
||||
const numeric = typeof value === 'number' ? value : typeof value === 'string' ? parseInt(value, 10) : NaN;
|
||||
const numeric =
|
||||
typeof value === 'number' ? value : typeof value === 'string' ? parseInt(value, 10) : NaN;
|
||||
return Number.isFinite(numeric) ? numeric : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user