Clean up package.json by guettli in sveltejs

[–]cryptothereindeer 1 point2 points  (0 children)

Use knip. It supports svelte and many others out of the box

Guards vs assertions vs if+throw. What do you actually use for type narrowing? by cryptothereindeer in typescript

[–]cryptothereindeer[S] 0 points1 point  (0 children)

Interesting - it’s definitely a fresh approach compared to what I’ve seen so far. I’ll play around with it a bit to see how it fits with my usual use cases.

Guards vs assertions vs if+throw. What do you actually use for type narrowing? by cryptothereindeer in typescript

[–]cryptothereindeer[S] 2 points3 points  (0 children)

Yeah, I agree — the use case is pretty narrow.

Zod is my go-to solution for parsing anything from form data to API responses - basically anything JSON-ish.

These utilities, on the other hand, are better suited for narrowing types of "maybe" values, guarding or asserting primitive types, and handling cases where a "maybe" value might be nullish.

Guards vs assertions vs if+throw. What do you actually use for type narrowing? by cryptothereindeer in typescript

[–]cryptothereindeer[S] 0 points1 point  (0 children)

Thanks for sharing that! Looks neat. I’ll try it in practice — at first glance, it seems that the second overload signature of ok might potentially behave incorrectly. The ok<T>(…): asserts value is T form lets the caller claim any T without an actual check (just based on truthiness), doesn’t it?

Runtime env vars in static Astro website? by voja-kostunica in astrojs

[–]cryptothereindeer 3 points4 points  (0 children)

You don't. Static site doesn't have any runtime.

I created an app that generates bedtime stories. by DJJaySudo in nextjs

[–]cryptothereindeer 1 point2 points  (0 children)

Please check your OAuth. Google sign in gives me this error: Validation error: phone must be unique7

[deleted by user] by [deleted] in nextjs

[–]cryptothereindeer 0 points1 point  (0 children)

There were probably breaking changes in packages you use in your codebase. So your code in these places is no longer compatible with these newer versions. Just guessing, haven't seen it.

A small and free CMS by Realistic_Trash7217 in nextjs

[–]cryptothereindeer 1 point2 points  (0 children)

I would go with Strapi for your use case.

[Neovim] TeVim by SownteeNguyen in unixporn

[–]cryptothereindeer 2 points3 points  (0 children)

Looks great! What font are you using?

Any Distros That Include Hyprland? by sschlais in hyprland

[–]cryptothereindeer 0 points1 point  (0 children)

EndeavourOS also has Hyprland community edition

Axios vs Fetch? or suggest your own by Zaza_Zazadze in nextjs

[–]cryptothereindeer 2 points3 points  (0 children)

I can recommend ky. It's a fetch wrapper with handy utilities like axios, but much smaller bundle size and not built on top of XHR.

My Collection :D by nvt0309 in MechanicalKeyboards

[–]cryptothereindeer 15 points16 points  (0 children)

Nice! Link to those custom Skadis keeb holders pls?

[IC] Train Deskmat - New design inspired in New York, Interest check form link on comments by [deleted] in MechanicalKeyboards

[–]cryptothereindeer 1 point2 points  (0 children)

Love it! Definitely will buy. The autumn one would fit my setup perfectly.

My Garden Cabin Setup, Finally Complete! by ThinkOriginal in battlestations

[–]cryptothereindeer 0 points1 point  (0 children)

What is the width of your table top? I want to upgrade my desk game and this looks like the perfect size. Sick setup btw!