Is it possible to create a function that accepts any type as an argument while still retaining the original type information of the input?
const preserveType = (input: any) => input // using 'any' for flexibility
const data = {
foo: 'bar',
john:'doe'
}
const output = preserveType(data)
// The output now becomes of type 'any' and loses the original shape information of the input