Javascript – Object property name as function argument with ensured type in Typescript
How to write definition of type in function argument which is one of object properties with same type? Example: I have object: type Article = { name: string; quantity: number; priceNet: number; priceGross: number; }; and want to write function…