File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import { withMonitor } from '@sentry/core';
2
2
import { replaceCronNames } from './common' ;
3
3
4
4
export interface NodeCronOptions {
5
- name ? : string ;
5
+ name : string ;
6
6
timezone ?: string ;
7
7
}
8
8
9
9
export interface NodeCron {
10
- schedule : ( cronExpression : string , callback : ( ) => void , options ? : NodeCronOptions ) => unknown ;
10
+ schedule : ( cronExpression : string , callback : ( ) => void , options : NodeCronOptions ) => unknown ;
11
11
}
12
12
13
13
/**
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ describe('cron check-ins', () => {
118
118
const cronWithCheckIn = cron . instrumentNodeCron ( nodeCron ) ;
119
119
120
120
expect ( ( ) => {
121
+ // @ts -expect-error Initially missing name
121
122
cronWithCheckIn . schedule ( '* * * * *' , ( ) => {
122
123
//
123
124
} ) ;
You can’t perform that action at this time.
0 commit comments