mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-06 05:34:28 +00:00
* Genericize ReactTimeago by ComponentType
This allows properties from `component` to be added to `TimeAgo` without throwing an error.
e.g.
```
<TimeAgo<typeof Text>
component={Text}
style={[styles.lastActiveText, { fontSize: activeBubbleSize * 0.588 }]}
date={lastActiveAt}
/>
```
Type inferencing not working yet, so must specify generic in order to add properties from `component`
* Removing RN dep
* Stylefix and updating TS to 2.9