Skip to content

Commit

Permalink
javascriptify
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Feb 13, 2025
1 parent 25b1847 commit 5f88d37
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions blog/2025-02-14-typescript-sdk-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ For example, a "Bluesky Like" (`app.bsky.feed.like`) defines the following prope
As can be seen, the `subject` property is defined as a reference to a `com.atproto.repo.strongRef` object. In this case, there is no ambiguity as to how the `subject` of a like should be interpreted, and the `$type` property is not needed.

```javascript
{
"createdAt": "2021-09-01T12:34:56Z",
"subject": {
const like: AppBskyFeedLike.Record = {
$type: 'app.bsky.feed.like',
createdAt: '2021-09-01T12:34:56Z',
subject: {
// No `$type` property needed here
"uri": "at://did:plc:123/app.bsky.feed.post/456",
"cid": "[...]"
uri: 'at://did:plc:123/app.bsky.feed.post/456',
cid: '[...]'
}
}
```
Expand Down

0 comments on commit 5f88d37

Please sign in to comment.