Create a shape part that combines all of its inputs together with an intersection or "and".
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}}` Copy
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}}`
Create a shape part that combines all of its inputs together with an intersection or "and".