forked from loafle/openapi-generator-original
18 lines
914 B
Plaintext
18 lines
914 B
Plaintext
(function(factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
// AMD. Register as an anonymous module.
|
|
define(['./ApiClient'{{#models}}, './model/{{importPath}}'{{/models}}{{#apiInfo}}{{#apis}}, './api/{{importPath}}'{{/apis}}{{/apiInfo}}], factory);
|
|
} else if (typeof module === 'object' && module.exports) {
|
|
// CommonJS-like environments that support module.exports, like Node.
|
|
module.exports = factory(require('./ApiClient'){{#models}}, require('./model/{{importPath}}'){{/models}}{{#apiInfo}}{{#apis}}, require('./api/{{importPath}}'){{/apis}}{{/apiInfo}});
|
|
}
|
|
}(function(ApiClient{{#models}}, {{importPath}}{{/models}}{{#apiInfo}}{{#apis}}, {{importPath}}{{/apis}}{{/apiInfo}}) {
|
|
'use strict';
|
|
|
|
return {
|
|
ApiClient: ApiClient{{#models}},
|
|
{{importPath}}: {{importPath}}{{/models}}{{#apiInfo}}{{#apis}},
|
|
{{importPath}}: {{importPath}}{{/apis}}{{/apiInfo}}
|
|
};
|
|
}));
|