twitter-bot-playground icon indicating copy to clipboard operation
twitter-bot-playground copied to clipboard

Typings example

Open spences10 opened this issue 8 years ago • 2 comments
trafficstars

This beautifl example from @LukeStoneHm as a base for how to create TypeScript classes and interfaces throughout the project :ok_hand:

image

spences10 avatar Jul 04 '17 15:07 spences10

Would you like me to paste the code here? Easier to work with than an image, although writing it out is more practice for yourself :smile:

LukeStonehm avatar Jul 04 '17 15:07 LukeStonehm

Hey @LukeStonehm I think I'd like to type it out, as you say to get the practice 👍

Also, did you have a resource for how to set the tsconfig.json so it uses the @types in the pagcakge.json file?

Like this:

  "types": [
    "node",
    "dotenv"
  ],

spences10 avatar Jul 04 '17 16:07 spences10