ondc-code-generator 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -162,7 +162,7 @@ export class TypescriptGenerator extends CodeGenerator {
|
|
|
162
162
|
.map((api) => `import ${api} from "./api-tests/${api}";`)
|
|
163
163
|
.join("\n");
|
|
164
164
|
const masterFunction = `
|
|
165
|
-
export function perform${functionName}(action: string, payload: any,allErrors = false, externalData = {}) {
|
|
165
|
+
export function perform${functionName}(action: string, payload: any,allErrors = false, externalData : any = {}) {
|
|
166
166
|
const normalizedPayload = normalizeKeys(payload);
|
|
167
167
|
externalData._SELF = normalizedPayload;
|
|
168
168
|
switch (action) {
|