init
This commit is contained in:
commit
ec53fcbe95
1905 changed files with 513762 additions and 0 deletions
9
ink/warn.ts
Normal file
9
ink/warn.ts
Normal 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',
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue