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
merged 3 commits into from
Feb 9, 2017
Merged

update generic extends example #489

merged 3 commits into from
Feb 9, 2017

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented Jan 24, 2017

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
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 mhegazy merged commit 795da4d into master Feb 9, 2017
@mhegazy mhegazy deleted the fix13651 branch February 9, 2017 23:02
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