mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
569 B
TypeScript
18 lines
569 B
TypeScript
export class BaseModel {
|
|
public load(model: string): object;
|
|
public get(path: string, fn?: Function): any;
|
|
public get(path: string, query?: object, fn?: Function): any;
|
|
public delete(path: string, fn?: Function): any;
|
|
public post(path: string, data?: object, fn?: Function): any;
|
|
public put(path: string, data?: object, fn?: Function): any;
|
|
public patch(path: string, data?: object, fn?: Function): any;
|
|
}
|
|
|
|
export interface IDefParams {
|
|
page?: number;
|
|
per_page?: number;
|
|
[key: string]: any;
|
|
}
|
|
|
|
export type TId = number | string;
|