@webdeveric/utils
    Preparing search index...
    • Assert that input is a string that contains digits only.

      Parameters

      • input: unknown
      • error: string | Error = 'input is not a string of integers only'

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

      assertIsDigitsString('12345'); // does not throw
      assertIsDigitsString('123.45'); // throws TypeError: input is not a string of integers only