Browse files

Add type annotations

  • Loading branch information...
1 parent 386314d commit 9883e621077195ad8ba77d52702133bb057292dc @bergie bergie committed Mar 9, 2014
Showing with 5 additions and 3 deletions.
  1. +5 −3 components/Group.coffee
View
8 components/Group.coffee
@@ -1,14 +1,16 @@
noflo = require "noflo"
class Group extends noflo.Component
+ description: 'Add groups to a packet'
constructor: ->
@newGroups = []
@inPorts =
- in: new noflo.Port
- group: new noflo.Port
+ in: new noflo.Port 'all'
+ group: new noflo.Port 'string'
+ clear: new noflo.Port 'bang'
@outPorts =
- out: new noflo.Port
+ out: new noflo.Port 'all'
@inPorts.in.on "connect", () =>
@outPorts.out.beginGroup group for group in @newGroups

0 comments on commit 9883e62

Please sign in to comment.