Skip to content

Commit 4ba1cc6

Browse files
vegegokumanolo
authored andcommitted
add generic type for behaviuors
1 parent 21399cc commit 4ba1cc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/Behavior.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface <%= className() %> {
3131
* @type <%= item.type %>
3232
* <%= item.isBehavior ? ('@behavior ' + item.behavior ) : ''%>
3333
*/
34-
@JsProperty <%= computeType(item.type) %> <%= item.getter %>();
34+
@JsProperty <%= computeGenericType(item.type) %> <%= computeType(item.type) %> <%= item.getter %>();
3535
/**
3636
* <%= getDescription(' ', item) %>
3737
*
@@ -40,7 +40,7 @@ public interface <%= className() %> {
4040
* @type <%= item.type %>
4141
* <%= item.isBehavior ? ('@behavior ' + item.behavior ) : ''%>
4242
*/
43-
@JsProperty void <%= item.setter %>;
43+
@JsProperty <%= computeGenericType(item.type) %> void <%= item.setter %>;
4444
<% }); %>
4545
<% _.forEach(getMethods(properties), function(item) { %>
4646
/**

0 commit comments

Comments
 (0)