@@ -103,23 +103,23 @@ export class RefBuilder {
103103 /** Respond to any write that affects a ref. */
104104 onWrite ( handler : (
105105 change : Change < DataSnapshot > ,
106- context ? : EventContext ) => PromiseLike < any > | any ,
106+ context : EventContext ) => PromiseLike < any > | any ,
107107 ) : CloudFunction < Change < DataSnapshot > > {
108108 return this . onOperation ( handler , 'ref.write' , this . changeConstructor ) ;
109109 }
110110
111111 /** Respond to update on a ref. */
112112 onUpdate ( handler : (
113113 change : Change < DataSnapshot > ,
114- context ? : EventContext ) => PromiseLike < any > | any ,
114+ context : EventContext ) => PromiseLike < any > | any ,
115115 ) : CloudFunction < Change < DataSnapshot > > {
116116 return this . onOperation ( handler , 'ref.update' , this . changeConstructor ) ;
117117 }
118118
119119 /** Respond to new data on a ref. */
120120 onCreate ( handler : (
121121 snapshot : DataSnapshot ,
122- context ? : EventContext ) => PromiseLike < any > | any ,
122+ context : EventContext ) => PromiseLike < any > | any ,
123123 ) : CloudFunction < DataSnapshot > {
124124 let dataConstructor = ( raw : LegacyEvent ) => {
125125 let [ dbInstance , path ] = resourceToInstanceAndPath ( raw . resource ) ;
@@ -136,7 +136,7 @@ export class RefBuilder {
136136 /** Respond to all data being deleted from a ref. */
137137 onDelete ( handler : (
138138 snapshot : DataSnapshot ,
139- context ? : EventContext ) => PromiseLike < any > | any ,
139+ context : EventContext ) => PromiseLike < any > | any ,
140140 ) : CloudFunction < DataSnapshot > {
141141 let dataConstructor = ( raw : LegacyEvent ) => {
142142 let [ dbInstance , path ] = resourceToInstanceAndPath ( raw . resource ) ;
@@ -151,7 +151,7 @@ export class RefBuilder {
151151 }
152152
153153 private onOperation < T > (
154- handler : ( data : T , context ? : EventContext ) => PromiseLike < any > | any ,
154+ handler : ( data : T , context : EventContext ) => PromiseLike < any > | any ,
155155 eventType : string ,
156156 dataConstructor : ( raw : Event | LegacyEvent ) => any ) : CloudFunction < T > {
157157
0 commit comments