I have an object like below:
var objContainer = {};
objContainer.string1 = "some string";
objContainer.string2 = "some string";
....
objContainer.stringN = "some string";
I want to create a type for objContainer variable in TypeScript.The point is, the variable count and names are unknown. So, I want to introduce a logic like "for each variable inside objContainer's type class will be string type, disregarding its name". Is there any way to accomplish that? Pseudo-code example is:
interface ExampleInterface{
objContainer:ExampleClass;
}
class ExampleClass{
{All Variables}:string;
}