Skip to content

Instantly share code, notes, and snippets.

@Falieson
Created May 31, 2018 22:14
Show Gist options
  • Save Falieson/442fe0fd99b89e8f89bc0bf2e5b27e59 to your computer and use it in GitHub Desktop.
Save Falieson/442fe0fd99b89e8f89bc0bf2e5b27e59 to your computer and use it in GitHub Desktop.
S6. F02. write and execute consumer (ARTICLE: TS-Module w/ Declarations (Part 1/4))
/** TS-Module w/ Declarations (Part 1/4)
* http://TGRstack.com/#ts-module_articles_part-1
* ./index.ts (Section 6. Figure 02.A.)
**/
import Hello from '2018-ts-module'
console.log(Hello('Aloha', 'Jupiter'))
### TS-Module w/ Declarations (Part 1/4)
# http://TGRstack.com/#ts-module_articles_part-1
# Execute the a new consumer of our ts-module
###
falieson:./ts-module-consumer/$ tsc
falieson:./ts-module-consumer/$ node index
Hi Earth # From the ts-module/index
Aloha Jupiter # From the new index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment