We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This could be construed as a tuple of type Post, but of course it's an array.
Post
beginners-typescript-tutorial/src/07-arrays.problem.ts
Lines 19 to 24 in 266c2f6
It might be better to create an array example so it fails if a student set the user interface to [Post] which passes the type checks.
[Post]
posts: [ { id: 1, title: "How I eat so much cheese", }, { id: 2, title: "Why I don't eat vegetables", }, ],
The text was updated successfully, but these errors were encountered:
#10
Sorry, something went wrong.
Makes sense - go for it!
Successfully merging a pull request may close this issue.
This could be construed as a tuple of type
Post
, but of course it's an array.beginners-typescript-tutorial/src/07-arrays.problem.ts
Lines 19 to 24 in 266c2f6
It might be better to create an array example so it fails if a student set the user interface to
[Post]
which passes the type checks.The text was updated successfully, but these errors were encountered: