We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Change
1 parent 1dd2035 commit df27316Copy full SHA for df27316
changelog.txt
@@ -0,0 +1 @@
1
+fixed - improved types of the `Change` class to describe both `before` and `after` fields as non-optional
src/cloud-functions.ts
@@ -90,7 +90,7 @@ export interface EventContext {
90
* to the event, "after" represents the state after the event.
91
*/
92
export class Change<T> {
93
- constructor(public before?: T, public after?: T) {}
+ constructor(public before: T, public after: T) {}
94
}
95
96
/** ChangeJson is the JSON format used to construct a Change object. */
0 commit comments