• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Dark Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up
You are viewing a single comment's thread from:

RE: Getting started with Hive app development

  • View the full context
  • View the direct parent
quochuy (77)in STEMGeeks • 5 years ago

Typescript is Javascript + types, so the code itself is Javascript and you have an additional syntax for declaring types. It's also recommended to add ESLint into the mix.

For example this JS code:
https://gist.github.com/quochuy/01d9e0f7cd56797b85e531ee984975ef

Would be come this in Typescript:
https://gist.github.com/quochuy/328a0e93005dabf0d015819bc9c13840


Or this in JS:
https://gist.github.com/quochuy/42c980e74e5c80a6a94548f282688560

Becomes this in TS:
https://gist.github.com/quochuy/5b95ba862fb6dc5d534b0c8a1c0658af

5 years ago in STEMGeeks by quochuy (77)
$0.10
  • Past Payouts $0.10
  • - Author $0.05
  • - Curators $0.05
8 votes
  • betterdev: $0.08
  • hextech: $0.01
  • giftgiver: $0.01
  • mafia.wallet: $0.00
  • nftmart: $0.00
  • rishi556: $0.00
  • thecouncil: $0.00
  • yggdrasil.laguna: $0.00
Reply 0
Sort:  
  • Trending
    • Trending
    • Votes
    • Age