DefinitelyTyped/types/gitlab/gitlab-tests.ts
2018-04-05 00:05:01 +08:00

21 lines
380 B
TypeScript

import * as lib from "gitlab";
const gitlab = lib({
url: 'http://example.com',
token: 'abcdefghij123456'
});
const v3 = new lib.ApiV3({ });
// From README
// Listing users
gitlab.users.all((users) => { });
// Listing projects
gitlab.projects.all((projects) => { });
// From examples/delet-service
gitlab.projects.services.remove("pid", "name", (service) => { });