Skip to content

Conversation

@Khwa678
Copy link

@Khwa678 Khwa678 commented Nov 26, 2025

i have made changes

@jakebailey jakebailey mentioned this pull request Dec 1, 2025
In TypeScript, two types are compatible if their internal structure is compatible.
This allows us to implement an interface just by having the shape the interface requires, without an explicit `implements` clause.


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change


Also of note, the use of `public` on parameters to the constructor is a shorthand that allows us to automatically create properties with that name.
Also of note, the use of `public` on constructor parameters is a shorthand that automatically creates properties with those names.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

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.

2 participants