AssertString: ((specimen, optDetails?) => asserts specimen is string)

Type declaration

    • (specimen, optDetails?): asserts specimen is string
    • The assert.string method.

      assert.string(v) is equivalent to assert.typeof(v, 'string'). We special case this one because it is the most frequently used.

      Assert an expected typeof result.

      Parameters

      • specimen: any

        The value to get the typeof

      • Optional optDetails: Details

        The details to throw

      Returns asserts specimen is string

Generated using TypeDoc