When working with typescript, it's important to define the variable type. Consider this example:
userData: {id: number, name: string};
But what if you want to allow other keys with any types that won't be validated? Is there a way to achieve this?
userData: {id: number, name: string, ...any};
Or perhaps there are modern type transformation operators that can help with this scenario?
If you have any advice or suggestions, it would be greatly appreciated.