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';
22import { replaceCronNames } from './common' ;
33
44export interface NodeCronOptions {
5- name ? : string ;
5+ name : string ;
66 timezone ?: string ;
77}
88
99export interface NodeCron {
10- schedule : ( cronExpression : string , callback : ( ) => void , options ? : NodeCronOptions ) => unknown ;
10+ schedule : ( cronExpression : string , callback : ( ) => void , options : NodeCronOptions ) => unknown ;
1111}
1212
1313/**
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ describe('cron check-ins', () => {
118118 const cronWithCheckIn = cron . instrumentNodeCron ( nodeCron ) ;
119119
120120 expect ( ( ) => {
121+ // @ts -expect-error Initially missing name
121122 cronWithCheckIn . schedule ( '* * * * *' , ( ) => {
122123 //
123124 } ) ;
You can’t perform that action at this time.
0 commit comments