UNPKG

caccl

Version:

Canvas App Complete Connection Library: an all-in-one library for connecting your app to Canvas, handling lti, access tokens, and api.

17 lines (16 loc) 432 B
import APIConfig from './APIConfig'; /** * Visit endpoint function type definition * @author Gabe Abrams */ declare 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;