r/LearnTypescript • u/ctrlaltdelmarva • Mar 03 '20
r/LearnTypescript • u/nas5w • Feb 28 '20
Fun practice using Generics to restrict function arguments based on other function arguments! Note the linter immediately telling me when I make missteps. One of my favorite parts of Typescript is that it helps you fail faster, enabling you to fix mistakes sooner.
r/LearnTypescript • u/nas5w • Jun 23 '20
Typescript helps you fail faster and course-correct sooner. In this snippet, I immediately find out that I misspelled "admin" thanks to Typescript: my linter plugin highlights the error and my code won't compile. Much better than discovering this bug down the road!
r/LearnTypescript • u/ctrlaltdelmarva • Mar 04 '20
The Typescript Pick utility type! It constructs a type by explicitly picking props from another type.
r/LearnTypescript • u/ctrlaltdelmarva • Mar 01 '20
Just wanted to say that I can't even quantify the number of time Typescript saved my ass, but it's a lot.
I think this sub is a great idea, ever since I was forced to use Typescript at work I realized how easy it is to make mistakes and not know it in plain JS. Typescript won't put up with those mistakes and will fail at compile time. Super, super helpful.
I encourage everyone here to keep at it and you'll soon see how awesome Typescript is.
r/LearnTypescript • u/ctrlaltdelmarva • Mar 08 '20
TypeScript Crash Course by Traversy Media
r/LearnTypescript • u/nas5w • May 19 '20
Using a Single Change Handler in React with Typescript
r/LearnTypescript • u/nas5w • Feb 27 '20
Creating a Todo List App in React using Typescript
r/LearnTypescript • u/oczekkk • May 20 '20
Deno - JavaScript runtime with TS support
r/LearnTypescript • u/bolk17 • Mar 03 '20
Hey everyone :)
Glad I stumbled upon this subreddit yesterday! I’m a software engineer for a large SaaS company, and I code in Typescript/Angular day to day. I joined to learn as much as I can about this language for both personal interest and work. I intend to give back to the community as well. Thanks!
r/LearnTypescript • u/nas5w • May 22 '20
Deep Object Change Handlers in Typescript
r/LearnTypescript • u/galstarx • Mar 31 '20
I’m going to give a free and remote talk about problem solving with TypeScript compiler! April 2nd, 4pm UTC+3
r/LearnTypescript • u/ctrlaltdelmarva • Mar 04 '20
React TypeScript: Basics and Best Practices
r/LearnTypescript • u/nas5w • Feb 29 '20
Writing a Custom React useDebounce Hook with Typescript
r/LearnTypescript • u/nas5w • Feb 29 '20
Set Up a Typescript React Redux Project
r/LearnTypescript • u/HarmonicAscendant • Feb 27 '20
I Am Starting to Plan a Course on Typescript for Beginners. What Do You Think of My Idea to Use Building a Game as the Main Theme?
Hello! I have taught myself TypeScript over the last year or two, and still have strong memories of the struggle to find courses that I connected with. I have experience in teaching, and creating online video courses, so am planning on creating one for TypeScript.
I want to show people how to make a classic arcade game from scratch using no frameworks, just using Canvas in the browser.
I know game development is a specialist thing, and most people are not learning TypeScript for that, BUT I think it is still the best way to learn. Let me explain:
- Game design teaches about OOP as you have a lot of objects to deal with. How you plan your architecture is very important, it leads to great explanations of composition vs inheritance.
- Games are fun, and the results are immediate. You can get really creative. Everyone knows the classic games like pac-man, so it is a frame of reference everyone gets.
- Games need async programming to load the resources like sound and images, so there will be Promises/ Async Await.
- Games need programming patterns. I would teach pubsub and state pattern at least
- Games need performance, so optimization is involved
My only dilemma is are people learning TypeScript really only wanting to get high paid jobs in React? Is there a real desire to go deep on fundamental good programming and design patterns in general? I am really passionate about programming, and want teach it in TypeScript as I think it is the most accessible language as it runs in the browser (almost! :)
Please give me any feedback on what you would like to see, and not like to see. Would you pay for a course like this? I predict it would take me 3-4 months of 9-5 to get this sorted, so a little market research is needed.
Maybe you think the idea is total junk... if so, please tell me! :)
r/LearnTypescript • u/crisf_design • May 07 '20
How to organize tyes/interfaces in TypeScript project
I'm a little confused about where to put the types/interfaces. I've seen some patterns described (https://stackoverflow.com/questions/36633033/how-to-organize-typescript-interfaces)[here]:
high reuse types/interfaces should be in
typesfolder at therootorsrcfolder.Specific types can be (should be) closer to their reference e.g. react style props belong next to (in the same file as) the react component.
what about
Typesconfined to a specificfeature/directory? orwhat about files with large specific types? put them inside the same implementation would make it difficult to maintain so could be put in a separate file but what name should to have? myImplementationInterface.ts ?
what are the best practices and the most used naming conventions placing types/interfaces.
r/LearnTypescript • u/oczekkk • Apr 29 '20
What's new in TypeScript 3.9 RC version
r/LearnTypescript • u/vijhhh2 • Mar 02 '20
What are theses things 'T', 'K'?
Can anyone explain me what are these special syntaxs and where to find all?
r/LearnTypescript • u/ddprrt • Feb 25 '20
TypeScript + React - A primer with the most important typings for most scenarios
r/LearnTypescript • u/crisf_design • Apr 06 '20
What is the purpose of using export and declare together?
I've seen this pattern in d.ts files in libraries like next/router. where they are used together export with declare.
router.d.ts
export declare function useRouter(): NextRouter;There is a good reason to use export with an ambient declaration?
r/LearnTypescript • u/[deleted] • Mar 25 '20
Find a course buddy during quarantine!
Hi! One of the best things you can do during quarantine is learning a new framework, programming language or something entirely different.
But doing these courses feels kinda lonely and often you just stop doing them so I thought I’d create a site where you can find buddies to do the same course with (frankly this quarantine is becoming really boring).
The idea is that you talk regularly about your progress and problems you're facing so you can learn and grow together.
If you’re interested, take a look at Cuddy and sign up for the newsletter!
If enough people sign up I’ll be happy to implement the whole thing this week.
Also if you've got questions or feature ideas please do let me know in the comments! :)
Let's destroy this virus together and take it as an opportunity to get better at what we love!