Function unknownShape

  • Define a shape part that resolves simply to unknown.

    Parameters

    • OptionaldefaultValue: unknown

    Returns ShapeUnknown<[unknown]>

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

    const myShape = defineShape({
    a: unknownShape,
    });

    // `myShape.runtimeType` is `{a: unknown}`