Closed valoricDe closed 2 years ago
Hey @valoricDe, thank you for the question. Try to change the interface IFeeduserType
to type IFeedUserType
.
This discussion may be related to your question:
https://github.com/microsoft/TypeScript/issues/15300#issuecomment-332366024
Did this answer help you?
Interesting. Yes, switching to types helped. Thank you for the pointer 👍
Hey there. After building my app I would like to strengthen the types I'm using to get away from 'any's.
My types are looking like:
I want to give it to
EnrichedUser<IFeedUserType>
but EnrichedUser is expecting to extend a generic record which has no fixed property key set.export type UR = Record<string, unknown>;
I tried to used
EnrichedUser<Partial<IFeedUserType>>
but then I loose all autocompletion in IntellijTo Reproduce
Import react-acitivty-feed create fixed type and feed into Enriched*
Expected behavior
I would expect to clarify the data structure buy creating types
Additional context
"react-activity-feed": "1.4.0",
Any help is highly welcome :)