Skip to content

Commit

Permalink
add isFunctionalInterface() method
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Apr 16, 2018
1 parent edc41a2 commit e46dfee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/main/java/org/bsc/java2typescript/TSType.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ public final String getNamespace() {
return (String) super.getOrDefault(NAMESPACE, getValue().getPackage().getName());
}

/**
*
* @return
*/
public boolean isFunctionalInterface() {
return TypescriptConverter.isFunctionalInterface( getValue() );
}
/**
*
* @param type
Expand Down

0 comments on commit e46dfee

Please sign in to comment.