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
Type 'Promise<IEnvironmentModel[]> | Promise<IBusinessUnitModel[]>' is not assignable to type 'Promise<ReturnType<DictionaryMethodsType[N]>>'. Type 'Promise<IEnvironmentModel[]>' is not assignable to type 'Promise<ReturnType<DictionaryMethodsType[N]>>'. Type 'IEnvironmentModel[]' is not assignable to type 'ReturnType<DictionaryMethodsType[N]>'.
The text was updated successfully, but these errors were encountered:
ilchenkoArtem
changed the title
Compilation failure with Generic Primis and ReturnType
Compilation failure with Generic, Promis and ReturnType
Sep 25, 2020
TypeScript Version: 3.7.x-dev.201xxxxx
Search Terms:
Promise, ReturnType, Generic
Code
Expected behavior:
Compilation successful
Actual behavior:
Compilation failure with error:
Playground Link:
https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgJICECuBnUFvYCqIwYAsgPYAmEANsgN4BQyyADnFBOKlQPwAuZCEwBbAEbQANC2TcAbsCgUQo7mF6DhYyVCYBfJk1CRYiFKgCiIRctXrKNes1YBzTMH5DsYKKFcyrFxwVCq0AJ7IoAAW0KRwIEhaPn4gAbI40AAiFKJwoJpCIhLSsjB+3FQRAHJwasm+-gZGJtDwSGhZwAhgwCqcwPiMsgpKKmrgQlY2Y-bgjnQA2gC6ANyy4jh4BMSkU1i4IPhEJOTUS2vNTGDhbChdPX0gnOFkEGDR1NgAKrcoALzDViLADWEEioGQYPCFBgnW6vX6FWwyyEAAoAJTIf4APmQAAVlKJgNgIAAeVAPRHPZGg8HLHEGdZMODYcKJZAwTCJanIWgUEJUp4vMnfHFozBQWgCFL+DFCQm5Enk74rPEuZAIFQ+ZBcbBsbUA5BwADu+TAnPeCGiaIABgB6OBsYD2gAkDEltH0tox6yC70lIGNZtIuvwBpApIAdAArbAqTFXLWRi38wUI4VQV7vT5UbACIVI7MfL6-O7YoFyGZ2CZgdFY3F8gVUQs08IU6y2cYOc60cUAclGNfU2H7GMCyE2h2OuzryEx2LxaZbGaLFIO2xOpAWfbR-anm9nY5khiYyZ1y9bL3Q4VqamxsjJ1TkAA9ICA81DwbDkFes28SzzMsIHFZ41CEap5UVYlSTJAAlAMoBAYCyT-Ytcx+P5FmqBk8UbS9VzbACMMWMCIGWRMgA
Related Issues:
The text was updated successfully, but these errors were encountered: