context: I have to do a post request to a server with a body of interface with properties title_string,created_at,etc
interface IPostBody{
titleString:string;
createdAt:string;
....
}
I need to use this interface here
const requestBody:IPostBody={
title_string:'hehe';
created_at:'my home';
}
as you can see, the names don't match up so it will raise type missing errors.
is there a way I could solve this without changing the camelCase names in the interface definition