forked from loafle/openapi-generator-original
fix: es6 style of Array inheritance to fix transpiler error (#5977)
* fix: es6 style of Array inheritance to fix transpiler error * fix: rebuild of promise-es6 petstore samples with fixed mustache style: added space between classname and bracket * style: rebuild javascript-all to reflect style changes in mustache
This commit is contained in:
@@ -24,7 +24,7 @@ import Animal from './Animal';
|
||||
* @module model/AnimalFarm
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class AnimalFarm {
|
||||
export default class AnimalFarm extends Array {
|
||||
/**
|
||||
* Constructs a new <code>AnimalFarm</code>.
|
||||
* @alias module:model/AnimalFarm
|
||||
@@ -34,8 +34,8 @@ export default class AnimalFarm {
|
||||
|
||||
constructor() {
|
||||
|
||||
this = new Array();
|
||||
Object.setPrototypeOf(this, AnimalFarm);
|
||||
super();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user