You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// src/dsl/matchers.ts// ...// Recurse the object removing any underlying matching guff, returning// the raw example contentexportfunctionextractPayload(value: AnyTemplate): AnyJson{if(isMatcher(value)){returnextractPayload(value.getValue());}if(Object.prototype.toString.call(value)==='[object Array]'){return(valueasArray<AnyTemplate>).map(extractPayload);}if(value!==null&&typeofvalue==='object'){returnObject.keys(value).reduce((acc: JsonMap,propName: string)=>({
...acc,[propName]: extractPayload((valueasRecord<string,AnyTemplate>)[propName]),}),{});}returnvalue;}
But the generated code is removing the null check
The text was updated successfully, but these errors were encountered:
The typescript code looks as follow
But the generated code is removing the null check
The text was updated successfully, but these errors were encountered: