mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 18:25:58 +08:00
wip: add type
This commit is contained in:
@@ -4,9 +4,10 @@ export interface IIssueBaseInfo {
|
||||
owner: string;
|
||||
repo: string;
|
||||
issueNunber: string | void;
|
||||
githubToken: string;
|
||||
}
|
||||
|
||||
|
||||
type updateMode = 'append' | string | void;
|
||||
|
||||
export interface IIssueCoreEngine {
|
||||
addAssignees(assignees: string[]): void;
|
||||
@@ -33,4 +34,15 @@ export interface IIssueCoreEngine {
|
||||
deleteComment(commentId: string): void;
|
||||
|
||||
lockIssue(lockReason: TLockReasons): void;
|
||||
|
||||
openIssue(): void;
|
||||
|
||||
removeAssignees(assignees: string[]): void;
|
||||
removeLabels(labels: string[]): void;
|
||||
|
||||
setLabels(labels: string[]): void;
|
||||
|
||||
unlockIssue(): void;
|
||||
|
||||
updateComment(commentId: string, body: TStringOrVoid, mode: updateMode): void;
|
||||
}
|
||||
|
Reference in New Issue
Block a user