UNPKG

jspteroapi

Version:

A pterodactyl v1 api using undici

23 lines (22 loc) 534 B
export interface MakeIncl { [key: string]: boolean; } export interface MakeFilter { filter: string; filterBy: string; } export interface MakeOpts { includes?: MakeIncl; filter?: MakeFilter; admin?: boolean; page?: number; } export declare const makeOptions: (options: MakeOpts) => string; export declare const paginate: <T>(request: (options: MakeOpts) => Promise<{ data: T[]; meta: { pagination: { total_pages: number; }; }; }>, options: MakeOpts) => Promise<T[]>;