init: add source code from src.zip

This commit is contained in:
sigridjineth
2026-03-31 01:55:58 -07:00
commit f5a40b86de
1902 changed files with 513237 additions and 0 deletions

9
src/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',
})
}