File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
browser-extension/src/handlers Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export type GitHubCommentType =
1010 | 'GH_PR_CODE_COMMENT' ;
1111
1212export interface GitHubContext extends CommentContext {
13+ type : GitHubCommentType ; // Override to narrow from string to specific union
1314 domain : string ;
1415 slug : string ; // owner/repo
1516 number ?: number | undefined ; // issue/PR number
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export type RedditCommentType =
66 | 'REDDIT_COMMENT_EDIT' ;
77
88export interface RedditContext extends CommentContext {
9+ type : RedditCommentType ; // Override to narrow from string to specific union
910 subreddit : string ;
1011 postId ?: string | undefined ;
1112 commentId ?: string | undefined ; // for editing existing comments
You can’t perform that action at this time.
0 commit comments