Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

update generic extends example - #489

Merged
Mohamed Hegazy (mhegazy) merged 3 commits into
masterfrom
fix13651
Feb 9, 2017
Merged

Mohamed Hegazy (mhegazy) merged 3 commits into
masterfrom
fix13651

Conversation

@mhegazy

Copy link
Copy Markdown
Contributor

Comment thread pages/Generics.md Outdated
For example, here we'd like to take two objects and copy properties from one to the other.
We'd like to ensure that we're not accidentally writing any extra properties from our `source`, so we'll place a constraint between the two types:
For example, here we'd like to get a property from an object given its name.
We'd like to ensure that we're not accidentally grapping a property that does not exist on the `obj`, so we'll place a constraint between the two types:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

typo: grabbing not grapping

@mhegazy
Mohamed Hegazy (mhegazy) merged commit 795da4d into master Feb 9, 2017
@mhegazy
Mohamed Hegazy (mhegazy) deleted the fix13651 branch February 9, 2017 23:02
Ali Piry (alipiry) pushed a commit to alipiry/TypeScript-Handbook that referenced this pull request Jan 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants