Last active
February 28, 2017 06:39
-
-
Save dupski/0265135ee3b0f509053b697d56a638e1 to your computer and use it in GitHub Desktop.
Example of importing specific exports from an ES6 module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import just the 'Customer' and 'MAXIMUM_PEOPLE' exports from people.ts | |
import { Customer, MAXIMUM_PEOPLE } from './models/people'; | |
let customer = new Customer('Bob', 34); | |
console.log(MAXIMUM_PEOPLE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment