Explore how to use Google’s new experimental Interest Invoker API for delays, popovers, and smarter hover UX.
Bolt.new revolutionizes how you build and deploy web apps with no-code development and seamless AI integration.
Learn how to get the most out of Cursor AI — one of the hottest tools in AI-assisted coding, with practical workflows and underrated features.
Learn about OpenAI vs open source LLMs for frontend devs, with an integration guide, costs, performance comparison, and implementation tips.
2 Replies to "Handling date strings in TypeScript"
Amazing, thanks.
I am just discovering type guards now and this is a powerful combo
new Date().toISOString().slice(0, 10),
—->
Type ‘string’ is not assignable to type ‘”1900-01-01″ | “1900-01-02” | “1900-01-03” | “1900-01-04” | “1900-01-05” | “1900-01-06” | “1900-01-07” | “1900-01-08” | “