1//// [arrowFunctionParsingGenericInObject.ts] 2const fn1 = () => ({ 3 test: <T = undefined>(value: T): T => value, 4 extraValue: () => {}, 5}) 6 7const fn1async = () => ({ 8 test: async <T = undefined>(value: T): Promise<T> => value, 9 extraValue: () => {}, 10}) 11 12const fn2 = () => ({ 13 test: <T>(value: T): T => value, 14 extraValue: () => {}, 15}) 16 17const fn2async = () => ({ 18 test: async <T>(value: T): Promise<T> => value, 19 extraValue: () => {}, 20}) 21 22const fn3 = () => ({ 23 extraValue: () => {}, 24 test: <T = undefined>(value: T): T => value, 25}) 26 27const fn3async = () => ({ 28 extraValue: () => {}, 29 test: async <T = undefined>(value: T): Promise<T> => value, 30}) 31 32const fn4 = () => ({ 33 extraValue: '', 34 test: <T = undefined>(value: T): T => value, 35}) 36 37const fn4async = () => ({ 38 extraValue: '', 39 test: async <T = undefined>(value: T): Promise<T> => value, 40}) 41 42 43//// [arrowFunctionParsingGenericInObject.js] 44const fn1 = () => ({ 45 test: (value) => value, 46 extraValue: () => { }, 47}); 48const fn1async = () => ({ 49 test: async (value) => value, 50 extraValue: () => { }, 51}); 52const fn2 = () => ({ 53 test: (value) => value, 54 extraValue: () => { }, 55}); 56const fn2async = () => ({ 57 test: async (value) => value, 58 extraValue: () => { }, 59}); 60const fn3 = () => ({ 61 extraValue: () => { }, 62 test: (value) => value, 63}); 64const fn3async = () => ({ 65 extraValue: () => { }, 66 test: async (value) => value, 67}); 68const fn4 = () => ({ 69 extraValue: '', 70 test: (value) => value, 71}); 72const fn4async = () => ({ 73 extraValue: '', 74 test: async (value) => value, 75}); 76