-
-
Save samth/5473972 to your computer and use it in GitHub Desktop.
This file contains 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
export default f(1, 2, 3); // anonymous export | |
export let foo = 5; // named declaration export | |
export foo // named export of existing identifier | |
export foo, bar; // named export of multiple existing identifiers | |
export foo as f; // named aliasing export | |
export foo as f, bar; // you get the idea | |
import default glob from "glob"; // anonymous import | |
import sync from "glob"; // named import | |
import sync as s from "glob"; // named aliasing import | |
import "fs" as fs; // import of module instance object, not anonymous module |
This file contains 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
export default f(1, 2, 3); // anonymous export | |
export let foo = 5; // named declaration export | |
export <foo> // named export of existing identifier | |
export <foo, bar>; // named export of multiple existing identifiers | |
export <foo as f>; // named aliasing export | |
export <foo as f, bar>; // you get the idea | |
import glob from "glob"; // anonymous import | |
import <sync> from "glob"; // named import | |
import <sync as s> from "glob"; // named aliasing import | |
module fs from "fs"; // import of module instance object, not anonymous module |
This file contains 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
export default f(1, 2, 3); // anonymous export | |
export let foo = 5; // named declaration export | |
export <foo> // named export of existing identifier | |
export <foo, bar>; // named export of multiple existing identifiers | |
export <foo as f>; // named aliasing export | |
export <foo as f, bar>; // you get the idea | |
import glob from "glob"; // anonymous import | |
import <sync> from "glob"; // named import | |
import <sync as s> from "glob"; // named aliasing import | |
import "fs" as fs; // import of module instance object, not anonymous module |
This file contains 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
export default f(1, 2, 3); // anonymous export | |
export let foo = 5; // named declaration export | |
export foo // named export of existing identifier | |
export foo, bar; // named export of multiple existing identifiers | |
export foo as f; // named aliasing export | |
export foo as f, bar; // you get the idea | |
import "glob" as glob; // anonymous import | |
import sync from "glob"; // named import | |
import sync as s from "glob"; // named aliasing import | |
import sync as s, | |
flarg as f from "glob"; // named aliasing import | |
import module "fs" as fs; // import of module instance object, not anonymous module |
This file contains 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
export f(1, 2, 3); // anonymous export | |
export let foo = 5; // named declaration export | |
export static foo // named export of existing identifier | |
export static foo, bar; // named export of multiple existing identifiers | |
export static foo as f; // named aliasing export | |
export static foo as f, bar; // you get the idea | |
import glob from "glob"; // anonymous import | |
import static sync from "glob"; // named import | |
import static sync as s from "glob"; // named aliasing import | |
import "fs" as fs; // import of module instance object, not anonymous export |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment