Skip to content

Commit

Permalink
[cascading] from release/9.4.0-rc to main (#1002)
Browse files Browse the repository at this point in the history
<!--
{"currentBranch":"release/9.4.0-rc","targetBranch":"main","bypassReviewers":true,"isConflicting":false}
-->

## Cascading from release/9.4.0-rc to main

The configuration requests the cascading to bypass reviewer in case of
CI success.
To not bypass the reviewing process, please check the following
checkbox:

- [ ] <!-- !cancel bypass! --> 🚫 stop reviewing process
bypass for this Pull Request

---

<small>This PR has been generated with ❤️ by the
[Otter](https://github.com/AmadeusITGroup/otter) cascading tool.</small>
  • Loading branch information
kpanot authored Nov 6, 2023
2 parents fbb5a6b + 55990a3 commit 32b2d0d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { utils, reviveArray, reviveMap, reviveDictionarizedArray } from '@ama-sd

{{#models}}
{{#model}}
{{^isEnum}}
{{^isEnum}}{{^isEnumRef}}
export function revive{{classname}}<T extends {{classname}} = {{classname}}>(data: undefined, dictionaries?: any): undefined;
export function revive{{classname}}(data: {{classname}}, dictionaries?: any): {{classname}} {{#discriminator}}{{#vendorExtensions}}{{#x-discriminator-subtypes}}| {{.}}{{/x-discriminator-subtypes}}{{/vendorExtensions}}{{/discriminator}};
export function revive{{classname}}(data: any, dictionaries?: any): {{classname}} {{#discriminator}}{{#vendorExtensions}}{{#x-discriminator-subtypes}}| {{.}}{{/x-discriminator-subtypes}}{{/vendorExtensions}}{{/discriminator}} | undefined;
Expand Down Expand Up @@ -119,7 +119,7 @@ export function revive{{classname}}<T extends {{classname}} = {{classname}}>(dat
{{#allVars}}
{{^isPrimitiveType}}
{{#complexType}}
{{^isEnum}}
{{^isEnum}}{{^isEnumRef}}
{{#isMap}}
{{#vendorExtensions}}
{{^nonObjectDefinition}}
Expand All @@ -143,12 +143,12 @@ export function revive{{classname}}<T extends {{classname}} = {{classname}}>(dat
{{/vendorExtensions}}
{{/isArray}}
{{/isMap}}
{{/isEnum}}
{{/isEnumRef}}{{/isEnum}}
{{/complexType}}
{{^complexType}}
{{^isEnum}}
{{^isEnum}}{{^isEnumRef}}
data{{#propertyAccess}}{{baseName}}{{/propertyAccess}} = data.{{baseName}} ? new {{{dataType}}}(data{{#propertyAccess}}{{baseName}}{{/propertyAccess}}) : undefined;
{{/isEnum}}
{{/isEnumRef}}{{/isEnum}}
{{/complexType}}
{{/isPrimitiveType}}
{{/allVars}}
Expand All @@ -158,7 +158,7 @@ export function revive{{classname}}<T extends {{classname}} = {{classname}}>(dat
return data as T;
}

{{/isEnum}}
{{/isEnumRef}}{{/isEnum}}
{{#isEnum}}
/** As the definition is not an object, no reviver is needed */
{{/isEnum}}
Expand Down

0 comments on commit 32b2d0d

Please sign in to comment.