← findnix.eu
🎬 makertube.net makertube.net

Crash course: TypeScript mapped types in action

⏱ 16:44 🌐 makertube.net

A brief tutorial and addendum to the recent shader graph example created in the previous video, explaining how to use TypeScript's generics and mapped types to provide additional type checking and auto-complete features for a better development experience of user-customizable parts of an existing architecture (shader operators, in this case). The project only serves as illustration, but the technique itself is very helpful in many other use cases. Relevant links: - https://makertube.net/w/aTZXyecXhcexvt9G3hNX15 (shader graph development) - https://thi.ng/shader-ast (TypeScript to GLSL transpiler) - https://thi.ng/umbrella (Mono repo of all current thi.ng projects)

β†—https://makertube.net/w/vai9TDyGjkduwapg7C9aJo
typescript mapped types programming tutorial
Indexiert von findnix.eu Β· Eigene Seite einreichen