Skip to content

Instantly share code, notes, and snippets.

@Falieson
Last active May 31, 2018 18:28
Show Gist options
  • Save Falieson/61620a06a682f7d6a678139b42711d50 to your computer and use it in GitHub Desktop.
Save Falieson/61620a06a682f7d6a678139b42711d50 to your computer and use it in GitHub Desktop.
S2. F03. import HelloWorld and use it (ARTICLE: TS-Module w/ Declarations (Part 1/4))
/** TS-Module w/ Declarations (Part 1/4)
* http://TGRstack.com/#ts-module_articles_part-1
* ./src/index.ts (Section 2. Figure 03.)
**/
import {default as HelloWorld} from './HelloWorld'
const FirstPart: string = "Hi"
const LastPart: string = "Earth"
console.log(HelloWorld(FirstPart, LastPart))
export default HelloWorld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment