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

32 lines
800 B
TypeScript

import { ApiBaseOptions } from './ApiBase';
import { Labels } from './Models/Labels';
import { Users } from './Models/Users';
import { Notes } from './Models/Notes';
import { Issues } from './Models/Issues';
import { Projects } from './Models/Projects';
import { Groups } from './Models/Groups';
export interface ApiBaseOptions {
url?: string;
token?: string;
oauth_token?: string;
base_url?: string;
auth?: any;
[key: string]: any;
}
export class ApiBase {
constructor(options: ApiBaseOptions);
readonly client: this;
readonly groups: Groups
readonly projects: Projects
readonly issues: Issues
readonly notes: Notes
readonly users: Users
readonly labels: Labels
options: ApiBaseOptions;
handleOptions(): void;
init(): object;
}