developit / developit/proptypes

proptypes changes impacted inferno-compat

Abierto
#8 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
60
Forks
11
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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] }
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, react
Área
api
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.