1 | import _Object$defineProperty from "@babel/runtime-corejs2/core-js/object/define-property";
|
2 | import toPropertyKey from "./toPropertyKey.js";
|
3 | function _defineProperties(target, props) {
|
4 | for (var i = 0; i < props.length; i++) {
|
5 | var descriptor = props[i];
|
6 | descriptor.enumerable = descriptor.enumerable || false;
|
7 | descriptor.configurable = true;
|
8 | if ("value" in descriptor) descriptor.writable = true;
|
9 | _Object$defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
10 | }
|
11 | }
|
12 | export default function _createClass(Constructor, protoProps, staticProps) {
|
13 | if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
14 | if (staticProps) _defineProperties(Constructor, staticProps);
|
15 | _Object$defineProperty(Constructor, "prototype", {
|
16 | writable: false
|
17 | });
|
18 | return Constructor;
|
19 | } |
\ | No newline at end of file |