ts-toolbelt
[Typescript] ts-toolbelt F.Narrow preserve the exactly data for function arguement
Example code: interface Fruit { name: string; price: number; } export const wrapFruit = <TFruits extends Fruit[]>(fruits: TFruits) => { const getFruit ......