Posts by HolandesVoador • 1 point
1 post
-
-2
votes0
answers27
viewsQ: How to create an interface or generic type for an object where all its properties are functions with different arguments in Typescript?
Let’s say I have these objects: const actionsPost = { likePost: (id: number) => dispatch({type: Actions.like, payload: {id}}), addPost: (title: string, body: string) => dispatch({type:…