Toggle navigation
Video
♫ Thôn Quê
♫ Sông Đáy
♫ Liên Khúc
♫ Nhạc Đám Cưới
♫ Nonstop Việt
♫ Không Lời
♫ Nhạc Vàng Trữ Tình
♫ Nhạc Trẻ
No More any! We FINALLY Have Proper Types for JSON.parse & JSON.stringify in TypeScript
Typed Rocks
10.296 Lượt nghe
Prev
play
stop
Next
mute
max volume
00:00
00:00
repeat
Update Required
To play the media you will need to either update your browser to a recent version or update your
Flash plugin
.
Tải MP3
MÔ TẢ MP3
TIẾP THEO
No More any! We FINALLY Have Proper Types for JSON.parse & JSON.stringify in TypeScript
Code: https://github.com/typed-rocks/typescript/blob/main/json-typed.ts TypeScript Worksheet:
https://www.youtube.com/watch?v=GqWaXfuoUYM
Branded Types:
https://www.youtube.com/watch?v=Yz8ySbaeCf8
Infer:
https://www.youtube.com/watch?v=vjsmv7M1iBE
Mapped Types:
https://www.youtube.com/watch?v=iCEJY9XpfG8
Currently, when we are using JSON.stringify to create a JSON string from an object, we lose all the type information. This means that when you use functions like JSON.parse you are left with the „any“ type. In this video we will fix that. We will create a properly typed JSON.stringify function declaration which will store the type information of the object the string was created from.
0:00
Intro
0:29
The issue
3:10
Fix it the easy way
8:10
Improve our Typings
14:45
Outro
Những bài liên quan
6:29
TypeScript 5.8 Beta Sneak Peek 🤫: This New Feature is AWESOME!
18.6 N
Typed Rocks
13:45
Let's Fix The Fatal Flaw in TypeScript's Union Types!
26.1 N
Typed Rocks
16:47
I BUILT a GAME in TypeScript TYPES!
4.8 N
Typed Rocks
18:19
Generics: The most intimidating TypeScript feature
203.8 N
Matt Pocock
25:29
showing TypeScript's creator DOOM | Anders Hejlsberg | TypeScript Showcase #11
74.8 N
Michigan TypeScript
18:33
Python vs Rust: I Made This Puzzle 16,000× Faster
6.3 N
codingjerk
13:38
Infer is easier than you think
102.6 N
Matt Pocock
15:06
This WILL CHANGE How You Work With Strings - Advanced TypeScript Magic!
9.8 N
Typed Rocks
16:16
TypeScript Magic: Console.log FINALLY Typed!
4 N
Typed Rocks
27:11
Maximize Speed with Dart FFI: Beginner’s Guide to High-Performance Integration | Flutter Heroes 2024
10.4 N
Flutter Heroes
23:34
Master TypeScript Generics (in Just 23 Minutes)
5.5 N
Jan Marshal
5:38
as const: the most underrated TypeScript feature
141.2 N
Matt Pocock
12:52
Learn TypeScript Generics In 13 Minutes
333.1 N
Web Dev Simplified
11:01
Let‘s Understand Intrinsic Types in TypeScript by Building Them
5.4 N
Typed Rocks
22:34
I might have a new favorite state manager...
83.4 N
Theo - t3․gg
35:19
Introducing Clay - High Performance UI Layout in C
356.1 N
Nic Barker
32:28
We're developing a high-end router. From scratch. (April 2025 update)
29.6 N
Tomaž Zaman
34:24
Master Zod in Just 30 Minutes
5.4 N
Jan Marshal
9:14
My @types/node Proposal Was MERGED - THIS Flaw Is Finally Fixed - Advanced TypeScript
13 N
Typed Rocks
12:00
Learn JSON in 10 Minutes
3.4 Tr
Web Dev Simplified
Nhạc Theo Chủ Đề
Nhạc Không Lời
Nhạc Vàng HOT
Nhạc Liên Khúc
Nhạc DJ HOT
Nhạc Hà Nam
Nhạc Vĩnh Yên
Nhạc Hưng Yên
Nhạc Hải Dương
Nhạc Hà Tây
Nhạc Sông Đáy
LK Nhạc Vàng
LK Nhạc Trẻ
Liên kết website