mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Update type definition files
This commit is contained in:
+4
-2
@@ -5,10 +5,12 @@ interface IAddParam {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
type HooksCb = (hooks: any[]) => any;
|
||||
|
||||
export class ProjectHooks extends BaseModel {
|
||||
public list(projectId: TId, fn?: Function): any;
|
||||
public list(projectId: TId, fn?: HooksCb): any;
|
||||
public show(projectId: TId, hookId: number, fn?: Function): any;
|
||||
public add(projectId: TId, params: IAddParam | string, fn?: Function): any;
|
||||
public update(projectId: TId, hookId: number, url: any, fn?: Function): any;
|
||||
public update(projectId: TId, hookId: number, url: string, fn?: Function): any;
|
||||
public remove(projectId: TId, hookId: number, fn?: Function): any;
|
||||
}
|
||||
|
||||
+11
-3
@@ -1,12 +1,20 @@
|
||||
import { BaseModel, TId } from '../BaseModel.d';
|
||||
|
||||
interface IShowFileParam {
|
||||
interface IShowFileParams {
|
||||
file_path: string;
|
||||
ref?: any;
|
||||
file_id?: any;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
interface IAddTagParams {
|
||||
id: TId;
|
||||
tag_name: string;
|
||||
ref: string;
|
||||
message?: string;
|
||||
release_description?: string;
|
||||
}
|
||||
|
||||
export class ProjectRepository extends BaseModel {
|
||||
public listBranches(projectId: TId, fn?: Function): any;
|
||||
public showBranch(projectId: TId, branchId: string, fn?: Function): any;
|
||||
@@ -14,7 +22,7 @@ export class ProjectRepository extends BaseModel {
|
||||
public unprotectBranch(projectId: TId, branchId: string, fn?: Function): any;
|
||||
public createBranch(params: object, fn?: Function): any;
|
||||
public deleteBranch(projectId: TId, branchId: string, fn?: Function): any;
|
||||
public addTag(params: object, fn?: Function): any;
|
||||
public addTag(params: IAddTagParams, fn?: Function): any;
|
||||
public deleteTag(projectId: TId, tagName: string, fn?: Function): any;
|
||||
public showTag(projectId: TId, tagName: string, fn?: Function): any;
|
||||
public listTags(projectId: TId, fn?: Function): any;
|
||||
@@ -24,7 +32,7 @@ export class ProjectRepository extends BaseModel {
|
||||
public listTree(projectId: TId, fn?: Function): any;
|
||||
public listTree(projectId: TId, params?: object, fn?: Function): any;
|
||||
public showFile(projectId: TId, fn?: Function): any;
|
||||
public showFile(projectId: TId, params?: IShowFileParam, fn?: Function): any;
|
||||
public showFile(projectId: TId, params?: IShowFileParams, fn?: Function): any;
|
||||
public createFile(params?: object, fn?: Function): any;
|
||||
public updateFile(params?: object, fn?: Function): any;
|
||||
public compare(params?: object, fn?: Function): any;
|
||||
|
||||
Reference in New Issue
Block a user