DefinitelyTyped/types/gitlab/BaseModel.d.ts
2018-04-05 00:49:04 +08:00

18 lines
519 B
TypeScript

export class BaseModel {
load(model: string): object;
get(path: string, fn?: Function): any;
get(path: string, query?: object, fn?: Function): any;
delete(path: string, fn?: Function): any;
post(path: string, data?: object, fn?: Function): any;
put(path: string, data?: object, fn?: Function): any;
patch(path: string, data?: object, fn?: Function): any;
}
export interface DefParams {
page?: number;
per_page?: number;
[key: string]: any;
}
export type TId = number | string;