Skip to content
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

Conversation

rami-monday
Copy link
Collaborator

fix the type of get response from Response to {data:Response}

Copy link
Collaborator

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

Comment on lines 14 to 18
data.app.id; // $ExpectType number
data.permissions.approvedScopes; // $ExpectType string[]
data.theme; // $ExpectType string
data.boardId; // $ExpectType number
data.viewMode; // $ExpectType string
Copy link
Collaborator

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

@rami-monday rami-monday merged commit 42d3208 into mondaycom:master Jan 11, 2024
1 check passed
@gregra81
Copy link
Collaborator

Solves #135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants