When working with TypeScript, we often create constant objects like the example below:
export const AppConstants = {
VAL1: 'val1',
VAL2: 'val2'
}
Now, the question arises - can we reference one individual property from another within the same object? For instance:
export const AppConstants = {
VAL1: 'val1',
VAL2: VAL1 + 'val2'
}