developit / developit/proptypes

proptypes changes impacted inferno-compat

未關閉
#8 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
60
分支
11
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從 proptypes 套件的進入點開始,檢查其目前的匯出是如何組成的。重現 issue 中所示的兩個 require 呼叫,然後驗證直接匯出和 .default 屬性是否都提供相同的 PropTypes API。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, react
領域
api
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。