@webdeveric/utils
    Preparing search index...
    • Assert that input is a string representing an integer.

      Parameters

      • input: unknown
      • error: string | Error = 'input is not an integer string'

      Returns asserts input is `${number}` | `${bigint}`

      assertIsIntString('42'); // does not throw
      assertIsIntString('42.5'); // throws TypeError: input is not an integer string