Skip to content

Commit 485a868

Browse files
committed
fix: use correct types
1 parent bab297c commit 485a868

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/StepActorStreamPosts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type PostRecord } from "@atproto/api"
1+
import { type AppBskyFeedPostRecord } from "@atproto/api"
22
import { StepStreamPosts, type StepActorOutput } from "../trotsky"
33
import { buildEventEmitter, JetstreamMessageCommit } from "./utils/jetstream"
44

@@ -7,7 +7,7 @@ import { buildEventEmitter, JetstreamMessageCommit } from "./utils/jetstream"
77
* Typically represents the streamed output of a single post event.
88
* @public
99
*/
10-
export type StepActorStreamPostsOutput = JetstreamMessageCommit & { "record": Partial<PostRecord> }
10+
export type StepActorStreamPostsOutput = JetstreamMessageCommit & { "record": Partial<AppBskyFeedPostRecord> }
1111

1212
/**
1313
* @experimental

lib/core/utils/jetstream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Did, FollowRecord, LikeRecord, PostRecord } from "@atproto/api"
1+
import type { Did, AppBskyGraphFollowRecord, AppBskyFeedLikeRecord, AppBskyFeedPostRecord } from "@atproto/api"
22
import WebSocket from "ws"
33
import EventEmitter from "events"
44
import { decompress } from "@skhaz/zstd"
@@ -24,7 +24,7 @@ export interface JetstreamMessageCommit extends JetstreamMessageBase {
2424
"collection": string;
2525
"rkey": string;
2626
"cid": string;
27-
"record"?: Partial<PostRecord> | Partial<LikeRecord> | Partial<FollowRecord>;
27+
"record"?: Partial<AppBskyFeedPostRecord> | Partial<AppBskyFeedLikeRecord> | Partial<AppBskyGraphFollowRecord>;
2828
};
2929
}
3030

0 commit comments

Comments
 (0)