You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeRetrieve=()=>{extracted?: stringraw: string}constretrieve: Retrieve=()=>{return{raw: 'mhm',extracted: 'aha',a: 1,// no error for this extra prop}}interfaceRetrieveInterface{(): {extracted?: stringraw: string}}constretrieveInterface: RetrieveInterface=()=>{return{raw: 'mhm',extracted: 'aha',a: 1,// no error for this extra prop}}
Expected behavior:
get same error as setting return type to arrow function
Activity
DanielRosenwasser commentedon Sep 2, 2020
Duplicate of #241, but I have a potential fix. Check out #40311 (comment)
typescript-bot commentedon Sep 4, 2020
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.