If I define the following array:
const array = ['a', 'b', 'c'];
Its type will be string[]. How to infer the type from its content, to avoid the necessity to repeat array content in the type definition of array? I.e. this:
const array: ['a', 'b', 'c'] = ['a', 'b', 'c'];