UNPKG

caccl-api

Version:

A class that defines a set of smart Canvas endpoints that actually behave how you'd expect them to.

17 lines (16 loc) 424 B
import APIConfig from './APIConfig'; /** * Visit endpoint function type definition * @author Gabe Abrams */ type VisitEndpointFunc = ((opts: { path: string; method: ('GET' | 'POST' | 'PUT' | 'DELETE'); action: string; params?: { [k: string]: any; }; config?: APIConfig; pagePostProcessor?: (page: any, pageNumber: number) => any; }) => Promise<any>); export default VisitEndpointFunc;