urbit/pkg/npm/api/groups/view.ts

27 lines
542 B
TypeScript
Raw Normal View History

2021-02-15 01:15:43 +03:00
import { joinError, joinProgress, joinResult } from ".";
2021-03-04 05:55:20 +03:00
import {Patp} from "../lib";
2021-02-15 01:15:43 +03:00
export type JoinError = typeof joinError[number];
export type JoinResult = typeof joinResult[number];
export type JoinProgress = typeof joinProgress[number];
2021-03-04 05:55:20 +03:00
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;
}
2021-02-15 01:15:43 +03:00
export interface JoinRequests {
2021-03-04 05:55:20 +03:00
[rid: string]: JoinRequest;
2021-02-15 01:15:43 +03:00
}