Nice thread on setting up TypeScript with Alpine.js (@samuelstancl packaged it up, see the “code” section)
Anyone interested in an article about how to set up TypeScript support for Alpine.js with a few lines of code? 😏 pic.twitter.com/Wwo0CN34C1
— Samuel Štancl (@samuelstancl) February 25, 2021
This email is supported by my GitHub Sponsors.
Here are this week’s Alpine.js adopters:
For more posts like these, you can join the Alpine.js Development Subscription, it’s a great way to support the newsletter and get early access to Alpine.js content.
LeanAdmin/alpine-typescript a package that provides full TypeScript support for Alpine.js. Lets you create class components, plain object components, and call them in x-data using Alpine.component(). And the class components even know about magic properties. By @samuelstancl
x-spreadnot liking undefined expression outputs
x-for="a in range"allows a 0-range