• Create a shape part that combines all of its inputs together with an intersection or "and".

    Type Parameters

    • Parts extends readonly [unknown, unknown]

    Parameters

    Returns ShapeAnd<Parts>

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

    const myShape = defineShape({
    a: and({q: ''}, {r: -1}, {s: true}),
    });

    // `myShape.runtimeType` is `{a: {q: string, r: number, s: boolean}}`
MMNEPVFCICPMFPCPTTAAATR