If you ever need to have a string that represents a key of the object, you can use the following:
const test: keyof MyObject = "myProp";
const myObject: MyObject = ....
const myValue = myObject[test]; // This is now valid because test is of a type that represents the key of "MyObject"