@webdeveric/utils
    Preparing search index...
    • Assert that input is an object whose own properties all have string values.

      Parameters

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

      Returns asserts input is StringRecord

      assertIsStringRecord({ a: '1', b: '2' }); // does not throw
      assertIsStringRecord({ a: 1 }); // throws TypeError: input is not a string record