This commit is contained in:
Bryan Ramos 2026-03-31 12:46:52 -04:00
commit 55ae41cb0c
1902 changed files with 513237 additions and 0 deletions

9
ink/warn.ts Normal file
View file

@ -0,0 +1,9 @@
import { logForDebugging } from '../utils/debug.js'
export function ifNotInteger(value: number | undefined, name: string): void {
if (value === undefined) return
if (Number.isInteger(value)) return
logForDebugging(`${name} should be an integer, got ${value}`, {
level: 'warn',
})
}