object-shape-tester - v6.3.3
    Preparing search index...

    Function unknownShape

    • Creates a shape that allows any value. This should be used sparingly.

      Parameters

      • OptionaldefaultValue: unknown

      Returns Shape<TUnknown>

      import {unknownShape, checkValidShape} from 'object-shape-tester';

      const myShape = unknownShape();

      checkValidShape('a', myShape); // `true`
      checkValidShape(10, myShape); // `true`
      checkValidShape({}, myShape); // `true`