Download src/ink/warn.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/main/src/ink/warn.ts
- Command line
-
hf download hf://chenbhao/codev/src/ink/warn.ts
-
curl -L -o warn.ts https://huggingface.co/chenbhao/codev/resolve/main/src/ink/warn.ts
295 Bytes
| 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', | |
| }) | |
| } | |