Skip to content

Instantly share code, notes, and snippets.

@dherman
Created November 20, 2012 05:36
Show Gist options
  • Save dherman/4116232 to your computer and use it in GitHub Desktop.
Save dherman/4116232 to your computer and use it in GitHub Desktop.
Using just import and destructuring to bind modules and their exports (variation).
import y = module "bar";
import { y } = module "bar";
import yy = (module "bar").y;
import { y: yy } = module "bar";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment