From 511cc41e56edfb8633ede7926ad6814cdbaabc6b Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Thu, 16 Feb 2017 14:13:59 -0800 Subject: [PATCH] Better strictNullChecks support for TransformationContext --- src/compiler/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index e02bdcab42e..c87ed85504f 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3912,7 +3912,7 @@ * NOTE: Transformation hooks should only be modified during `Transformer` initialization, * before returning the `NodeTransformer` callback. */ - onSubstituteNode?: (hint: EmitHint, node: Node) => Node; + onSubstituteNode: (hint: EmitHint, node: Node) => Node; /** * Enables before/after emit notifications in the pretty printer for the provided @@ -3933,7 +3933,7 @@ * NOTE: Transformation hooks should only be modified during `Transformer` initialization, * before returning the `NodeTransformer` callback. */ - onEmitNode?: (hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void) => void; + onEmitNode: (hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void) => void; } export interface TransformationResult {