Experimental browser for the Atmosphere
good thread !! wondering if given typescript 5’s experimental support for annotations (and some pawwaving), you could have an annotation like @SatisfiedBy(["path", "to", "subcomponent"]) and then use a mapped type to apply a subpath to every field of a component. + some legwork = comptime assurance!
Apr 23, 2025, 6:26 AM
{ "uri": "at://did:plc:hk5uktpndnycc7czqpcidzrd/app.bsky.feed.post/3lnhkrrorhc2c", "cid": "bafyreib3jxrma6snfz2bjq72kkccyylexrnqlmkolgrqitujx7a3emwoea", "value": { "text": "good thread !! wondering if given typescript 5’s experimental support for annotations (and some pawwaving), you could have an annotation like @SatisfiedBy([\"path\", \"to\", \"subcomponent\"]) and then use a mapped type to apply a subpath to every field of a component. + some legwork = comptime assurance!", "$type": "app.bsky.feed.post", "langs": [ "en" ], "reply": { "root": { "cid": "bafyreickfc4hyh2wdavqmztqj6tnze7xg447zmeygfld5646rn4hdryf7y", "uri": "at://did:plc:ur57rspeesmncqfguxkiagka/app.bsky.feed.post/3lnhkbqitis22" }, "parent": { "cid": "bafyreickfc4hyh2wdavqmztqj6tnze7xg447zmeygfld5646rn4hdryf7y", "uri": "at://did:plc:ur57rspeesmncqfguxkiagka/app.bsky.feed.post/3lnhkbqitis22" } }, "createdAt": "2025-04-23T06:26:46.297Z" } }