tack-up-now/show-watcher/notifications/create.ts

21 lines
395 B
TypeScript

interface TackUpNotification<Name extends string, Params> {
name: Name
params: Params
subscriptionJson: any
start: () => void
}
type TackUpNotifications =
TackUpNotification<"left to go in class", {
classNumber: number,
leftToGo: number
}> |
function create<NotificationType>(type: NotificationType["name"], params: NotificationType["params"]) {
}