UNPKG

canny-api-js

Version:

Unofficial node API wrapper for Canny's API (https://canny.io/).

19 lines (18 loc) 676 B
import { AxiosInstance } from 'axios'; interface ICannyOpportunitiesListArg { /** The number of opportunities you'd like to fetch. Defaults to 10 if not specified. */ limit?: number; /** The number of opportunities you'd like to skip before starting to fetch. Defaults to 0 if not specified. */ skip?: number; } interface ICannyOpportunitiesListResponse { hasMore: boolean; opportunities: ICannyOpportunity[]; } export default class Opportunities { static OPPORTUNITIES_LIST_ROUTE: string; private axios; constructor(axios: AxiosInstance); list(args?: ICannyOpportunitiesListArg): Promise<ICannyOpportunitiesListResponse>; } export {};