I'm getting the error when transpiling Typescript with npm run build:
Type 'number | null' is not assignable to type 'number'.
  Type 'null' is not assignable to type 'number'.
Index.ts
public init(context: ComponentFramework.Context<IInputs>, notifyOutputChanged: () => void, state: ComponentFramework.Dictionary, container:HTMLDivElement)
    {
        // the increment value defaults to 1 if no increment input is detected, or it is zero.
        this._incrementValue = 1;
        if(context.parameters.incrementValue != null){
            if(context.parameters.incrementValue.raw != 0){
                this._incrementValue = context.parameters.incrementValue.raw;
            }
        }
On this part:
this._incrementValue
Is there a way to avoid the compiler to complaint about dealing with nulls?
 
     
    