How To Add Custom Intrinsic Types To TypeScript
Автор: Typed Rocks
Загружено: 2024-10-25
Просмотров: 3462
Описание:
https://github.com/typed-rocks/patch-ts
https://www.npmjs.com/package/patch-ts
TypeScript uses intrinsic types internally to create powerful types which would be almost impossible to create in only types. Sadly TypeScript does not provide a functionality to add intrinsic types yourself.
That's why I've created patch-ts. A cli tool which patches the TypeScript compiler to also support user defined intrinsic types.
Let's see how we can use it.
0:00 Intro
0:25 Why do we need intrinsic types?
1:20 Installation and Features
2:06 Feature: show-lib
2:50 Setup VSCode
3:25 Create Intrinsic types
5:20 Feature: create-dts
6:00 Feature: Patch bundle
8:05 Test the results
9:10 Usage with tsc
10:00 Create more intrinsic types
11:00 Feature: Patch useEnv
13:20 Review what we did
14:30 Jetbrains Setup
15:07 Outro
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: