Skip to content

Commit ead0e8b

Browse files
committed
add updated ts_helpers to project-template
1 parent 17d3e8a commit ead0e8b

File tree

1 file changed

+11
-0
lines changed
  • build-artifacts/project-template-gradle/src/main/assets/internal

1 file changed

+11
-0
lines changed

build-artifacts/project-template-gradle/src/main/assets/internal/ts_helpers.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090

9191
__extends_ts(Child, Parent);
9292

93+
9394
if (Parent.extend) {
9495
Child.__isPrototypeImplementationObject = true;
9596
Child.__proto__ = Parent;
@@ -105,9 +106,19 @@
105106
return extended;
106107
};
107108
}
109+
110+
function Interfaces(interfacesArr) {
111+
return function (target) {
112+
if(interfacesArr instanceof Array) {
113+
// attach interfaces: [] to the object
114+
target.prototype.interfaces = interfacesArr;
115+
}
116+
}
117+
}
108118

109119
global.__native = __native;
110120
global.__extends = __extends;
111121
global.__decorate = __decorate;
112122
global.JavaProxy = JavaProxy;
123+
global.Interfaces = Interfaces;
113124
})()

0 commit comments

Comments
 (0)