Experimental browser for the Atmosphere
Loading post...
{ "uri": "at://did:plc:gcicrnq74xblebuf2kv3uud3/app.bsky.feed.like/3ld4l6llsrp2o", "cid": "bafyreihzomfxj7zin5tecv7uogj22r6brgkhebf7opesdyjrkttzbkpkni", "value": { "$type": "app.bsky.feed.like", "subject": { "cid": "bafyreiavqp3b5dkfkhhc5f3zxairj737w274suyk5zr3gjo2hpfrfpqree", "uri": "at://did:plc:k2xbwfzirvkmysg3nrht2rsf/app.bsky.feed.post/3ld3kgvqduk2s" }, "createdAt": "2024-12-12T15:22:41.742Z" } }
yerp. I've been using this in my projects for a while now. ``` export const strBool = z .union([z.boolean(), z.literal('true'), z.literal('false')]) .transform((value) => value === true || value === 'true') ```
Dec 12, 2024, 5:36 AM