DEV Community

TypeScript

Optional static type-checking for JavaScript.

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
React Native fixing typescript issue: "Type 'Timeout' is not assignable to type 'number'"

React Native fixing typescript issue: "Type 'Timeout' is not assignable to type 'number'"

5
Comments
1 min read
Type inference in mapped types: a rabbit hole and a technique to jump out

Type inference in mapped types: a rabbit hole and a technique to jump out

5
Comments
3 min read
Making the Properties of an Object Optional in Typescript

Making the Properties of an Object Optional in Typescript

13
Comments
1 min read
How to use <webview> and Measurement Protocol with Electron

How to use <webview> and Measurement Protocol with Electron

8
Comments
2 min read
Generic typing a hash-map with dynamic key and T array

Generic typing a hash-map with dynamic key and T array

10
Comments
1 min read
TypeScript Decorators

TypeScript Decorators

5
Comments
3 min read
How to add a class to just right added comment, not all of them

How to add a class to just right added comment, not all of them

5
Comments 1
4 min read
A quick review of the Fresh web framework

A quick review of the Fresh web framework

10
Comments 1
2 min read
NextJS. Use notFound in getStaticProps and some dynamic data? Don’t forget to revalidate!

NextJS. Use notFound in getStaticProps and some dynamic data? Don’t forget to revalidate!

7
Comments
3 min read
#3 Building Headless Commerce - Adding Search Engine with Algolia

#3 Building Headless Commerce - Adding Search Engine with Algolia

10
Comments
3 min read
Sample TodoApp in Fresh Deno framework

Sample TodoApp in Fresh Deno framework

22
Comments 1
18 min read
How to iterate over an object in Javascript?

How to iterate over an object in Javascript?

28
Comments 9
2 min read
The dark side of Record in TypeScript

The dark side of Record in TypeScript

13
Comments 2
3 min read
Setting up JWT Authentication in Typescript with Express, MongoDB, Babel, Prettier, ESLint, and Husky: Part 2

Setting up JWT Authentication in Typescript with Express, MongoDB, Babel, Prettier, ESLint, and Husky: Part 2

12
Comments 1
27 min read
Cleaner imports with aliases in react and typescript ✨✨

Cleaner imports with aliases in react and typescript ✨✨

24
Comments 1
2 min read
Why React Native TypeScript config recommends to use a five years old standard (lib: es2017)?

Why React Native TypeScript config recommends to use a five years old standard (lib: es2017)?

7
Comments
2 min read
Set up NextJS 12 with Typescript, Chakra UI, ESLint, Prettier, React Testing Library, Vitest and Playwright in VSCode in 2022

Set up NextJS 12 with Typescript, Chakra UI, ESLint, Prettier, React Testing Library, Vitest and Playwright in VSCode in 2022

16
Comments 2
6 min read
Very simple way to render star rating

Very simple way to render star rating

5
Comments 1
2 min read
How Typescript Enums Work

How Typescript Enums Work

24
Comments 4
3 min read
The Art of Transpilers - From One Programming Language to Another

The Art of Transpilers - From One Programming Language to Another

15
Comments 3
4 min read
Use playwright to download files from remote servers

Use playwright to download files from remote servers

5
Comments
2 min read
Create a React 18 / TypeScript bundle using esbuild

Create a React 18 / TypeScript bundle using esbuild

32
Comments
2 min read
Beginner to Advanced Challenge - project 4 (animated Christmas tree light app)

Beginner to Advanced Challenge - project 4 (animated Christmas tree light app)

7
Comments
1 min read
Beginner to Advanced Challenge - project 3 (calculator app)

Beginner to Advanced Challenge - project 3 (calculator app)

12
Comments
1 min read
How the typeof Operator works in TypeScript

How the typeof Operator works in TypeScript

11
Comments
2 min read
Typescript Numeric Literal Types How To Find Nth Root of X

Typescript Numeric Literal Types How To Find Nth Root of X

8
Comments
2 min read
Setting up Node JS, Express, Prettier, ESLint and Husky Application with Babel and Typescript: Part 1

Setting up Node JS, Express, Prettier, ESLint and Husky Application with Babel and Typescript: Part 1

15
Comments
19 min read
Showing MapBox map with React. 🗺️

Showing MapBox map with React. 🗺️

20
Comments 3
11 min read
React hooks: useSessionStorage and useLocalStorage

React hooks: useSessionStorage and useLocalStorage

19
Comments 3
1 min read
Typescript Numeric Literal Types How To X^N (Exponentiation)

Typescript Numeric Literal Types How To X^N (Exponentiation)

9
Comments 1
2 min read
TypeScript string literal type concatenation

TypeScript string literal type concatenation

14
Comments 6
3 min read
Flatbread 🥪 - consume relational, flat-file data using GraphQL in any static framework

Flatbread 🥪 - consume relational, flat-file data using GraphQL in any static framework

9
Comments
4 min read
tsParticles 2.1.3 Released

tsParticles 2.1.3 Released

21
Comments
1 min read
POV - Why Angular or React to web applications?

POV - Why Angular or React to web applications?

11
Comments 8
3 min read
TypeScript Generics 101

TypeScript Generics 101

9
Comments
2 min read
Getting Started with React Navigation v6 and TypeScript in React Native

Getting Started with React Navigation v6 and TypeScript in React Native

8
Comments
10 min read
Code Snippet: How to avoid calling a function twice until its task has finished

Code Snippet: How to avoid calling a function twice until its task has finished

5
Comments 1
1 min read
How To Access Page Props in All Components with Next.js and TypeScript

How To Access Page Props in All Components with Next.js and TypeScript

6
Comments
8 min read
Typescript Numeric Literal Types How To Y / X (Division)

Typescript Numeric Literal Types How To Y / X (Division)

9
Comments
1 min read
TypeScript Cheat sheet

TypeScript Cheat sheet

20
Comments
2 min read
Fixing a Promise return object to be typed in Typescript

Fixing a Promise return object to be typed in Typescript

11
Comments
3 min read
Singleton Decorator

Singleton Decorator

15
Comments
1 min read
Why you should be careful using setInterval?

Why you should be careful using setInterval?

9
Comments 2
2 min read
Narrowing Library

Narrowing Library

7
Comments
8 min read
Testando datas mais facilmente com Jest

Testando datas mais facilmente com Jest

16
Comments 2
2 min read
Deno Deploy

Deno Deploy

9
Comments
2 min read
Firebase/Firestore is becoming too complicated of a product. Am I the only one?

Firebase/Firestore is becoming too complicated of a product. Am I the only one?

10
Comments 5
1 min read
Walk-up usable codebases

Walk-up usable codebases

5
Comments 1
3 min read
Typed Dates Conversion with Typescript

Typed Dates Conversion with Typescript

11
Comments
5 min read
How to create and publish React Typescript npm package with demo and automated build

How to create and publish React Typescript npm package with demo and automated build

19
Comments
19 min read
Typescript Numeric Literal Types How To X * Y (Multiplication)

Typescript Numeric Literal Types How To X * Y (Multiplication)

6
Comments
1 min read
Typescript Partial But No Undefined

Typescript Partial But No Undefined

7
Comments
4 min read
Computed local-only fields in Apollo Client

Computed local-only fields in Apollo Client

8
Comments 1
4 min read
SvelteKit TypeScript vanilla-extract Starter: Markdown Blog

SvelteKit TypeScript vanilla-extract Starter: Markdown Blog

5
Comments
7 min read
A migration to Vue 3: part 1

A migration to Vue 3: part 1

21
Comments
8 min read
Typescript Two Numeric Literal Types How To X - Y (Subtraction)

Typescript Two Numeric Literal Types How To X - Y (Subtraction)

5
Comments
1 min read
How To Make A Typescript + NodeJS Express Project with eslint, EJS and Restart On Typescript Server Changes

How To Make A Typescript + NodeJS Express Project with eslint, EJS and Restart On Typescript Server Changes

55
Comments 10
2 min read
TypeScript Utility Types: The 6 Most Useful

TypeScript Utility Types: The 6 Most Useful

356
Comments 9
3 min read
Open-source contributors worth sponsoring

Open-source contributors worth sponsoring

4
Comments
3 min read
Border Radius Previewer App using Typescript. #beginner2advanced

Border Radius Previewer App using Typescript. #beginner2advanced

17
Comments
2 min read
loading...