shrub/pkg/npm/api/groups/view.ts
2021-03-04 12:55:38 +10:00

27 lines
542 B
TypeScript

import { joinError, joinProgress, joinResult } from ".";
import {Patp} from "../lib";
export type JoinError = typeof joinError[number];
export type JoinResult = typeof joinResult[number];
export type JoinProgress = typeof joinProgress[number];
export interface JoinRequest {
/**
* Whether to display the join request or not
*/
hidden: boolean;
/**
* Timestamp of when the request started
*/
started: number;
ship: Patp;
progress: JoinProgress;
}
export interface JoinRequests {
[rid: string]: JoinRequest;
}