Packages › trotsky › StepNotificationsUnreadCount
StepNotificationsUnreadCount class
Represents a step for retrieving the unread notification count using the Bluesky API.
Signature:
typescript
export declare class StepNotificationsUnreadCount<P = Trotsky, C = null, O extends StepNotificationsUnreadCountOutput = StepNotificationsUnreadCountOutput> extends Step<P, C, O>Extends: Step<P, C, O>
Example
Get unread notification count:
ts
await Trotsky.init(agent)
.notificationsUnreadCount()
.tap((step) => {
console.log(`Unread notifications: ${step.output.count}`)
})
.run()Methods
Method | Modifiers | Description |
|---|---|---|
Applies the step logic to retrieve the unread notification count. |