@@ -29,11 +29,11 @@ import { DefaultHandler, defaultHandler } from './default';
2929import { getNotificationAuthor } from './utils' ;
3030
3131class PullRequestHandler extends DefaultHandler {
32- readonly type = 'PullRequest' as const ;
32+ override readonly type = 'PullRequest' as const ;
3333
34- readonly supportsMergedQueryEnrichment = true ;
34+ override readonly supportsMergedQueryEnrichment = true ;
3535
36- async enrich (
36+ override async enrich (
3737 notification : GitifyNotification ,
3838 _settings : SettingsState ,
3939 fetchedData ?: PullRequestDetailsFragment ,
@@ -80,7 +80,7 @@ class PullRequestHandler extends DefaultHandler {
8080 } ;
8181 }
8282
83- iconType ( notification : GitifyNotification ) : FC < OcticonProps > {
83+ override iconType ( notification : GitifyNotification ) : FC < OcticonProps > {
8484 switch ( notification . subject . state as GitifyPullRequestState ) {
8585 case 'DRAFT' :
8686 return GitPullRequestDraftIcon ;
@@ -95,7 +95,7 @@ class PullRequestHandler extends DefaultHandler {
9595 }
9696 }
9797
98- iconColor ( notification : GitifyNotification ) : IconColor {
98+ override iconColor ( notification : GitifyNotification ) : IconColor {
9999 switch ( notification . subject . state as GitifyPullRequestState ) {
100100 case 'OPEN' :
101101 return IconColor . GREEN ;
@@ -110,7 +110,7 @@ class PullRequestHandler extends DefaultHandler {
110110 }
111111 }
112112
113- defaultUrl ( notification : GitifyNotification ) : Link {
113+ override defaultUrl ( notification : GitifyNotification ) : Link {
114114 const url = new URL ( defaultHandler . defaultUrl ( notification ) ) ;
115115 url . pathname += '/pulls' ;
116116 return url . href as Link ;
0 commit comments