Inferring Type for `known` in Tagged Enum Function Argument
hi i have this tagged enum
and i have this function
and i have this function
test(source: PayloadDataSource<{ a: number }>) and i want known to be inferred from source in test function so that when i do test(PayloadDataSource.known({ data: <- this should be typed as '{ a: number }' })