Discover what’s new in The Replay, LogRocket’s newsletter for dev and engineering leaders, in the October 8th issue.
Walk through building a data enrichment workflow that moves beyond simple lead gen to become a powerful internal tool for enterprises.
From sketches to code in minutes, DesignCoder shows how AI-generated, hierarchy-aware UIs could change the way developers prototype and ship apps.
It’s 2025, and CSS finally thinks logically. The if() function brings real conditional styling — no hacks, no JS workarounds. Here’s how to use it right.
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” | “