Skip to content

Commit 511cc41

Browse files
committed
Better strictNullChecks support for TransformationContext
1 parent af18df3 commit 511cc41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3912,7 +3912,7 @@
39123912
* NOTE: Transformation hooks should only be modified during `Transformer` initialization,
39133913
* before returning the `NodeTransformer` callback.
39143914
*/
3915-
onSubstituteNode?: (hint: EmitHint, node: Node) => Node;
3915+
onSubstituteNode: (hint: EmitHint, node: Node) => Node;
39163916

39173917
/**
39183918
* Enables before/after emit notifications in the pretty printer for the provided
@@ -3933,7 +3933,7 @@
39333933
* NOTE: Transformation hooks should only be modified during `Transformer` initialization,
39343934
* before returning the `NodeTransformer` callback.
39353935
*/
3936-
onEmitNode?: (hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void) => void;
3936+
onEmitNode: (hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void) => void;
39373937
}
39383938

39393939
export interface TransformationResult<T extends Node> {

0 commit comments

Comments
 (0)