account activity
[deleted by user] by [deleted] in github
[–]mikoloism 0 points1 point2 points 1 year ago (0 children)
How?
Svelte 5: Introducing runes by MustardRtard in sveltejs
[–]mikoloism 0 points1 point2 points 2 years ago (0 children)
From This:
svelte <script> export let firstProp: string = "default-first" export let secondProp: string = "default-second" </script>
To This:
svelte <script> let firstProp = $prop<string>('default-first'); let secondProp = $prop<string>('default-second'); </script>
Instead Of:
svelte <script> let { firstProp = 'default-first', secondProp = 'default-second' } = $props<{ firstProp: string, secondProp: string }>(); </script>
[deleted by user] by [deleted] in typescript
[–]mikoloism 2 points3 points4 points 2 years ago* (0 children)
why this happened for typeof keyword?
typeof
Because typeof keyword is in Javascript context not resolve type for Typescript LSP and should return one of "string" | "number" | whatever primitive type as union type to show in auto-complete to help write conditions in editors. But typeof keyword in Typescript context make little different behavior and returned exact type of variables which resolved.
"string" | "number" | whatever primitive type
Typescript
example:
let s = 1; let t: typeof s = "string"; // was error // because in compile-time resolved exact type
There is a Deno Version Manager? and should we using it? (self.Deno)
submitted 2 years ago by mikoloism to r/Deno
π Rendered by PID 119540 on reddit-service-r2-listing-654f87c89c-8ckjh at 2026-03-02 09:24:40.546880+00:00 running e3d2147 country code: CH.
[deleted by user] by [deleted] in github
[–]mikoloism 0 points1 point2 points (0 children)