Created
December 19, 2016 09:44
-
-
Save mathieuancelin/7bbbbc88a659c0289481da00e4cf408e 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
import A from './module'; | |
import AA, { doSomething } from './module'; | |
A.doSomething() === doSomething() | |
AA.doSomethingElse() | |
////////////////////////////////// | |
export default const publicApi = { | |
doSomething() { | |
... | |
}, | |
doSomethingElse() { | |
... | |
} | |
} |
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
import { doSomething, doSomethingElse, a } from './module'; | |
import * as A from './module'; | |
doSomething() === A.doSomething() | |
a === A.a; | |
/////////////////////////////////// | |
export function doSomething() { | |
... | |
} | |
export function doSomethingElse() { | |
... | |
} | |
export const a = "..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment