mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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
|
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| react-timeago-tests.tsx | ||
| tsconfig.json | ||
| tslint.json | ||