import { InviteAction, InviteActionAccept, InviteActionDecline } from "./index.d"; import { Poke, Serial } from ".."; export const action = (data: T): Poke => ({ app: 'invite-store', mark: 'invite-action', json: data }); export const accept = ( app: string, uid: Serial ): Poke => action({ accept: { term: app, uid } }); export const decline = ( app: string, uid: Serial ): Poke => action({ decline: { term: app, uid } });