{"version":3,"sources":["../src/withShape.js"],"names":["withShape","type","shapeTypes","TypeError","shapeValidator"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEe,SAASA,SAAT,CAAmBC,IAAnB,EAAyBC,UAAzB,EAAqC;AAClD,MAAI,OAAOD,IAAP,KAAgB,UAApB,EAAgC;AAC9B,UAAM,IAAIE,SAAJ,CAAc,+BAAd,CAAN;AACD;;AACD,MAAMC,cAAc,GAAG,uBAAMF,UAAN,CAAvB;AACA,SAAO,qBAAI,CAACD,IAAD,EAAOG,cAAP,CAAJ,EAA4B,WAA5B,CAAP;AACD","sourcesContent":["import and from './and';\nimport shape from './shape';\n\nexport default function withShape(type, shapeTypes) {\n if (typeof type !== 'function') {\n throw new TypeError('type must be a valid PropType');\n }\n const shapeValidator = shape(shapeTypes);\n return and([type, shapeValidator], 'withShape');\n}\n"],"file":"withShape.js"}