Skip to content

Commit 95e2dbb

Browse files
committed
feat(core): implement vararg overload
1 parent 0b6e76c commit 95e2dbb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

core/src/main/kotlin/schema/Interfaces.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,15 @@ fun <T : Any> GraphQLMutableElementWithInterfaces<T>.implement(
750750
interfaces += block()
751751
}
752752

753+
/**
754+
* Add the given [interfaces].
755+
*/
756+
fun <T : Any> GraphQLMutableElementWithInterfaces<T>.implement(
757+
vararg interfaces: GraphQLInterfaceType<in T>
758+
) {
759+
this.interfaces += interfaces
760+
}
761+
753762
/* ============================================== */
754763
/* ========| |======== */
755764
/* ========| w/ Type Getter |======== */

0 commit comments

Comments
 (0)