I'm working on a Demo API Wrapper for Roblox, yet I've encountered an issue. Basically, what I'm trying to do is send a request but then return all the data as an API wrapper would do. Yet, I don't know how I'd type this certain property. This because, the object can change depending on the type of action I sent with the request.
As you can see here. The description object is empty.
[{
...
"actionType": "string",
"description": {},
"created": "2021-04-19T21:21:48.513Z"
}]
But when I send a request, I can either get this or even more.
"description": {
"Targetld": "2434302765",
"OldRoIeSetId": "33456000",
"NewRoIeSetId": "21608541",
"Targetname": "t_ru9",
"OldRoIeSetName": "______________"
"NewRoIeSetName": "folk"
}
So with this, How would I have a TypeScript Interface handle all of this without using the Unknown keyword?