πŸ“„ File detail

ink/warn.ts

🧩 .tsπŸ“ 10 linesπŸ’Ύ 295 bytesπŸ“ text
← Back to All Files

🎯 Use case

This file lives under β€œink/”, which covers Ink terminal UI (layouts, TTY IO, keyboard, renderer components). On the API surface it exposes ifNotInteger β€” mainly functions, hooks, or classes. It composes internal code from utils (relative imports).

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

import { logForDebugging } from '../utils/debug.js' export function ifNotInteger(value: number | undefined, name: string): void { if (value === undefined) return if (Number.isInteger(value)) return

πŸ“€ Exports (heuristic)

  • ifNotInteger

πŸ–₯️ Source preview

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