alpha-version-dce-check-in-ui
Version:
UI for taking attendance and checking people in.
15 lines (13 loc) • 400 B
text/typescript
/**
* Type describing a function for visiting server endpoints.
* @author Benedikt Arnarsson
*/
type VisitServerEndpoint = (opts: {
// The path of the server endpoint
path: string,
// The method of the endpoint
method?: ('GET' | 'POST' | 'DELETE' | 'PUT'),
// query/body parameters to include
params?: { [key in string]: any },
}) => Promise<any>;
export default VisitServerEndpoint;