I have this object:
export const myObj = {
a: 'someval',
b: 'someotherval',
c: 'asdasdasd'
};
Which then I use like:
const myVar:string = myObj[someOtherVar];
What's the proper way of doing this with Typescript?
I have this object:
export const myObj = {
a: 'someval',
b: 'someotherval',
c: 'asdasdasd'
};
Which then I use like:
const myVar:string = myObj[someOtherVar];
What's the proper way of doing this with Typescript?