We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd039d5 commit e23ffb7Copy full SHA for e23ffb7
1 file changed
src/index.js
@@ -1,3 +1,18 @@
1
-export { arrayWithLength } from './arrayWithLength'
2
-export { instanceOfComponent } from './instanceOfComponent'
3
-export { mutuallyExclusive } from './mutuallyExclusive'
+import propTypes from 'prop-types'
+
+import { arrayWithLength } from './arrayWithLength.js'
4
+import { instanceOfComponent } from './instanceOfComponent.js'
5
+import { mutuallyExclusive } from './mutuallyExclusive.js'
6
7
+const customPropTypes = {
8
+ arrayWithLength,
9
+ instanceOfComponent,
10
+ mutuallyExclusive,
11
+}
12
13
+export { arrayWithLength, instanceOfComponent, mutuallyExclusive }
14
15
+export default {
16
+ ...propTypes,
17
+ ...customPropTypes,
18
0 commit comments