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
TypeScript Version: 4.0.2
Search Terms:
callable
Code
Expected behavior:
get same error as setting return type to arrow function
Actual behavior:
no error
Playground Link:
https://www.typescriptlang.org/play?#code/C4TwDgpgBAShwCcCWEBu0C8UAUBKKGAfFAN4BQUUEAHogIYDGwEAJgPwBcUAzokgHYBzClAR0A7l17IhZAL5kyDAPb9eo+MjQQucPtoI5cXAsXKUE8AK4J+pERYlcA5AFsAFq+cAaB1VpiTKwudO50Pn50XACMvpQKCmQCzAgAZozQelroAJL8KekM0OZGXCU09EHsUnyyjpI8tcIJiipqwBr6ufkQaRm6mijdBRmGeKb2Fta2k5SiTlBunhFz-pXMLCFhK3NRULEiLUqq6pZdEACiCAjKCGPGsxWBG5yNMsL1Ne-yEyVnNnYSp9Fh4vHE5k9GBstuFwZQ9gd4vIgA
Related Issues:
Maybe I hit same as on going discussion here -> #241
The text was updated successfully, but these errors were encountered: