Real-world uses of TypeScript’s utility types
Utility types are types that modify other types. You can think of them as functions, but they operate on types instead of values.
Read more [piccalil.li]
Posts tagged with typescript
Utility types are types that modify other types. You can think of them as functions, but they operate on types instead of values.
Read more [piccalil.li]
– tighten.com - submitted by Jamison Valenta
Let's explore Zod: a library that can help us validate data not only on the client but also on the server, and even generate TypeScript types to maintain end-to-end type safety and consistency.
Read more [tighten.com]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"As a Laravel developer, this is the one newsletter I most look forward to. Freek has a talent for distilling packages or techniques down to something immediately useful - one tip can save you hours and even weeks. It's concise and practical and highly relevant."
DHH on why he's ditching TypeScript
Read more [world.hey.com]
Gotta love TypeScript
Read more [madewithlove.com]
Here's the recording of Laravel Worldwide Meetup #6.
Frank De Jonge walked us through improvement made in Flysystem v2. Stefan Baumgartner showed us the awesomeness that is TypeScript.
You can watch recordings of previous editions in this playlist on YouTube.
This is how Seb decides when or when not to explicitly add types in TypeScript.
Read more [sebastiandedeyne.com]
My colleague Ruben introduces the laravel-typescript-transformer package he created. This one can convert backend classes, like enums and DTOs, to TypeScript definitions.
Read more [rubenvanassche.com]
This summer in Belgium has been a very hot one, and we're bound to have a couple more very warm weeks during the rest of summer.
I'm not the best at dealing with this kind of heat, and with the temperature inside hitting 28° C, I've been trying to get my home to cool down on a budget: I open the windows when the temperature outside is cooler than inside, and close them when it warms up. I've also noticed the sun hits the living room starting at around 7 in the morning, which means I should close the curtains right around that time to stop the tile floor from heating up.
From the start, I knew it was likely that I would forget to close the windows in time. I would need someone - or something - to remind me. I saw a talk about Google Cloud by Bram Van Damme at JSConf.be a while back, so I decided this could be a fun little project to play around with GCP.
A nice example by Evert Pot on how you can make static analysers do their work better.
Read more [evertpot.com]
Recently Jeffrey Way published a video titled "Frontend Authorization Brainstorming" on Laracasts. In that video, he shows three ways of passing authorization results to the front-end.
Currently I'm working on a big project that uses Inertia, React and TypeScript. In this blog post, I won't cover those things in detail, but I'd like to show you have we, using those technologies, pass authorization (and routes) to the front-end.
In a new post on his blog Sebastian De Deyne, multi disciplinary wizard at Spatie, explains how to set up TypeScript in a typical Laravel app.
In a recent Spatie project we decided to give TypeScript a shot for the business critical part of a new application. TypeScript provides static analysis to reduce the chance of introducing bugs, to have self-documenting code, and to improve our tooling (autocompletion!)Adding TypeScript support is pretty straight forward and is done in three steps: install the necessary dependencies, configure TypeScript, and finally configure Laravel Mix.
https://sebastiandedeyne.com/posts/2017/typescript-with-laravel-mix