Experimental browser for the Atmosphere
I feel like an exported props type should be a first-class citizen of .svelte components that automatically types $props. Kinda like ``` <script lang="ts"> export type Props = { foo: string; bar: number; } </script> Foo is {$props.foo}, and bar is {$props.bar}! ``` I can only dream =)
May 7, 2025, 7:52 PM
{ "uri": "at://did:plc:gdgssnismf7rsf5you3ndgmm/app.bsky.feed.post/3lom6ea7ulc2h", "cid": "bafyreicuzyidaa5zp7ushblbvhe4jtwokhn45tbijmu4aoht5hb5t3ytky", "value": { "text": "I feel like an exported props type should be a first-class citizen of .svelte components that automatically types $props. Kinda like\n\n```\n<script lang=\"ts\">\nexport type Props = {\n foo: string;\n bar: number;\n}\n</script>\n\nFoo is {$props.foo}, and bar is {$props.bar}!\n```\n\nI can only dream =)", "$type": "app.bsky.feed.post", "langs": [ "en" ], "reply": { "root": { "cid": "bafyreiguewaqhnls4ftnjyctoxwujo6nt437mf5vr3qdglifygpchwspeu", "uri": "at://did:plc:gdgssnismf7rsf5you3ndgmm/app.bsky.feed.post/3lom2ixaw3s2j" }, "parent": { "cid": "bafyreiarrhzz7r3htxts6kwj7xypaf4eja7hha4euvu3lba74txv6kyntq", "uri": "at://did:plc:ymznktnohhcspuva7l32ff5f/app.bsky.feed.post/3lom4fde5rk2w" } }, "createdAt": "2025-05-07T19:52:57.194Z" } }