Files
javascript-client-api/types/Sync.ts
T
2021-07-11 19:17:00 +01:00

24 lines
389 B
TypeScript

import type { Id } from "./_common"
export type UserSettings = {
[key: string]: [ number, string ]
}
export type ChannelCompositeKey = {
channel: Id,
user: Id
}
export interface ChannelUnread {
_id: ChannelCompositeKey,
last_id: string,
mentions?: string[]
}
export interface WebPushSubscription {
endpoint: String,
p256dh: String,
auth: String,
}