Skip to content

Instantly share code, notes, and snippets.

@dupski
Last active February 28, 2017 06:39
Show Gist options
  • Save dupski/0265135ee3b0f509053b697d56a638e1 to your computer and use it in GitHub Desktop.
Save dupski/0265135ee3b0f509053b697d56a638e1 to your computer and use it in GitHub Desktop.
Example of importing specific exports from an ES6 module
// 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