const valueWrapper = <T>(value: T): T[] => { return [value]; }; console.log(valueWrapper<number>(10));