mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
380 B
TypeScript
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) => { });
|