-
Notifications
You must be signed in to change notification settings - Fork 0
TypeScript
hpepper edited this page Dec 10, 2021
·
7 revisions
- Typescript style guide
- Sams Introduction to Typescript
- NodeJS packages
- https://www.typescriptlang.org/docs/handbook/utility-types.html
- https://www.typescriptlang.org/docs/handbook/2/objects.html
- https://www.tutorialsteacher.com/typescript/typescript-array
- https://www.typescripttutorial.net/typescript-tutorial/typescript-default-parameters/
- https://basarat.gitbook.io/typescript/type-system/exceptions
- https://thispointer.com/convert-array-to-string-without-comma-in-javascript/
- https://www.samanthaming.com/tidbits/83-4-ways-to-convert-string-to-character-array/
- https://www.tutorialspoint.com/typescript/typescript_operators.htm
- https://sjohnsonaz.github.io/cascade/0-Overview/0.5-Arrays-and-Hashes/
- https://www.typescriptlang.org/
-
npm i
-
npm run start
-
Stun
-
Screen output
- console.log/console.warn/console.error - pretty prints json objects
- process.stdout.write - write json structure in a single line
-
check is object is empty:
Object.keys(my_object).length === 0
-
dns.lookup
-
hash-map: https://stackoverflow.com/questions/42211175/typescript-hashmap-dictionary-interface
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
- https://stackoverflow.com/questions/39032333/get-a-value-inside-a-promise-typescript
- https://basarat.gitbook.io/typescript/future-javascript/async-await#async-await-support-in-typescript
- https://stackoverflow.com/questions/39032333/get-a-value-inside-a-promise-typescript
- https://stackoverflow.com/questions/5010288/how-to-make-a-function-wait-until-a-callback-has-been-called-using-node-js
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
- https://stackoverflow.com/questions/43881192/returning-a-promise-in-an-async-function-in-typescript
- https://blog.bitsrc.io/keep-your-promises-in-typescript-using-async-await-7bdc57041308
- https://stackoverflow.com/questions/39238167/how-to-return-a-proper-promise-with-typescript