-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixing the type of get response #139
fixing the type of get response #139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rami-monday let's remove all the $ExpectType
comments as we're not using typescript lint here anyway, so they don't have any influence and they are only confusing
data.app.id; // $ExpectType number | ||
data.permissions.approvedScopes; // $ExpectType string[] | ||
data.theme; // $ExpectType string | ||
data.boardId; // $ExpectType number | ||
data.viewMode; // $ExpectType string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these assertions are not promising anything about the types of these primitives, i.e. if boardId changes to string, this test won't catch it. I recommend using https://www.npmjs.com/package/expect-type
Solves #135 |
fix the type of get response from
Response
to{data:Response}