Creates a shape that requires a tuple.
import {tupleShape, checkValidShape} from 'object-shape-tester';const myShape = tupleShape('', -1);checkValidShape( [ 'a', 10, ], myShape,); // `true`checkValidShape( [ 'a', ], myShape,); // `false` Copy
import {tupleShape, checkValidShape} from 'object-shape-tester';const myShape = tupleShape('', -1);checkValidShape( [ 'a', 10, ], myShape,); // `true`checkValidShape( [ 'a', ], myShape,); // `false`
Creates a shape that requires a tuple.