@webdeveric/utils
    Preparing search index...
    • Assert that input is a non-empty string.

      Parameters

      • input: unknown
      • error: string | Error = 'input is not a string with length'

      Returns asserts input is string

      assertIsStringWithLength('hello'); // does not throw
      assertIsStringWithLength(''); // throws TypeError: input is not a string with length