wip: add type

This commit is contained in:
元凛
2021-10-12 15:43:16 +08:00
parent 03531cdc76
commit f2b1cc82b6

View File

@@ -4,9 +4,10 @@ export interface IIssueBaseInfo {
owner: string; owner: string;
repo: string; repo: string;
issueNunber: string | void; issueNunber: string | void;
githubToken: string;
} }
type updateMode = 'append' | string | void;
export interface IIssueCoreEngine { export interface IIssueCoreEngine {
addAssignees(assignees: string[]): void; addAssignees(assignees: string[]): void;
@@ -33,4 +34,15 @@ export interface IIssueCoreEngine {
deleteComment(commentId: string): void; deleteComment(commentId: string): void;
lockIssue(lockReason: TLockReasons): 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;
} }