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
functionfoo(x: number);functionfoo(x: string);functionfoo(x: number|string){/***/}varc: number|string;foo(c);// ERROR: Argument type 'number|string' not assignable to parameter type 'string'
This is an very old issue. It's very strange that I just ran into this issue recently(this week). The same code work without any problem before(with tsc and tslint, in the past 12 months).
src/room.ts(518,40): error TS2345: Argument of type'string | MemberQueryFilter' is not assignable to parameter of type'MemberQueryFilter'.
Type 'string' has no properties in common with type'MemberQueryFilter'.
The text was updated successfully, but these errors were encountered:
According to microsoft/TypeScript#1805 (comment)
the following code is not valid in TypeScript:
This is an very old issue. It's very strange that I just ran into this issue recently(this week). The same code work without any problem before(with tsc and tslint, in the past 12 months).
See https://circleci.com/gh/Chatie/wechaty/1884?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
The text was updated successfully, but these errors were encountered: