developit / developit/proptypes
proptypes changes impacted inferno-compat
- Langage dominant
- JavaScript
- Étoiles
- 60
- Forks
- 11
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
inferno-compat expects `proptypes` to export `proptypes.default`. Can you please export both directly and using default property?
```
> require('proptypes').default
undefined
> require('proptypes')
{ array: { [Function: bound checkType] isRequired: [Function: bound checkType] },
bool: { [Function: bound checkType] isRequired: [Function: bound checkType] },
func: { [Function: bound checkType] isRequired: [Function: bound checkType] },
number: { [Function: bound checkType] isRequired: [Function: bound checkType] },
object: { [Function: bound checkType] isRequired: [Function: bound checkType] },
string: { [Function: bound checkType] isRequired: [Function: bound checkType] },
symbol: { [Function: bound checkType] isRequired: [Function: bound checkType] },
any: { [Function: bound checkType] isRequired: [Function: bound checkType] },
arrayOf: [Function: createArrayOfTypeChecker],
element: { [Function: bound checkType] isRequired: [Function: bound checkType] },
instanceOf: [Function: createInstanceTypeChecker],
node: { [Function: bound checkType] isRequired: [Function: bound checkType] },
objectOf: [Function: createObjectOfTypeChecker],
oneOf: [Function: createEnumTypeChecker],
oneOfType: [Function: createUnionTypeChecker],
shape: [Function: createShapeTypeChecker] }
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start at the proptypes package entry point and inspect how its current exports are assembled. Reproduce the two require calls shown in the issue, then verify that both the direct export and the .default property expose the same PropTypes API.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, react
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100