Event JSON
{
"id": "9ef941bdeb7154ba9c9e191c9be759f2c20d9e833738f2e99d38704d3e4f3b9a",
"pubkey": "692d9d8fb6c5db3d114c21513be89063e8ee0d14f89d35103c8f1b7d40a116a7",
"created_at": 1718862077,
"kind": 1,
"tags": [
[
"imeta",
"url https://files.mastodon.social/media_attachments/files/112/647/314/194/231/500/original/afc5e189581b59f2.png",
"m image/png"
],
[
"proxy",
"https://mastodon.social/@sanderelias/112647345090188635",
"web"
],
[
"t",
"typescript"
],
[
"proxy",
"https://mastodon.social/users/sanderelias/statuses/112647345090188635",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/sanderelias/statuses/112647345090188635",
"pink.momostr"
]
],
"content": "#typescript question.\n\nThis is a sample, but I want to have a function that returns a given type, \nBut also, optionally, I want `type | undefined` \nI would love to figure this one out!\n\n[here[(https://www.typescriptlang.org/play/?target=9\u0026jsx=0#code/MYewdgzgLgBAJgQygmBeGYCmB3GBZBABwB5oAnASzAHMAaGAVzAGswRswA+ACgEoBuAFCDQkWNUxQAIkgQAuGAHFJM5GhjcKcBeSp0YIQlArgA-AoDebACoALMuwUAjECAA2mBGAC+vNJxgLQRgYUWgYTDAoMgBPdURkADoJKE04AWCYCgAzDUjomL8gkJCySQYyMAio2KEQ70ycjUNjM0Sbe3YizNLyysYwOExsqkw4OpgGkKhO3CxcAFEyBzJuAHJ82IwQWCp4WQhJNYzvIUEoGMJMJRVZdWKYYmseLR1ovV4Fawmnl+0YXQ0egtExgSwdBzYBTZBBuQ6+L4-Z5pN6UIEGIyg8EgOyQhTRBiYBEwawwAA+AyGIyw40Ep2EAHoAFRMmAASRg2C8sBmFAgMCgIAFsyyuQABk43AhbGL4CBMBAwGtYJgAB58qAQeh7Xn8ihQTBkJCg+i6zkgMjMCAAQhgTIZInA4QN0AAjOpiGAGABbJyGzgpVQIdaS6XHM7M1kcrlRYXXMpQCpVC5XAVCv0wMVe32G8mU4ajOBi+gc2wIABu12yICYcG2sBikhgKC5cUFMBSwr59sdYgFCtg6E9Pr9ZADt2QIaltjWtCsONmcgJRN4QA) is the sample in TS-playground\nhttps://files.mastodon.social/media_attachments/files/112/647/314/194/231/500/original/afc5e189581b59f2.png\n",
"sig": "6835fa8fa3bfedff3593896f22e831c1d5af17f6ce64a63406a3735c67573190006407f7ac85ed4f78efa5f769d307d8c73c21c6029c857828f1ae22e58445d7"
}