eonarheim / TypeState

A strongly typed finite state machine for TypeScript
http://eonarheim.github.io/TypeState/example/
BSD 2-Clause "Simplified" License
272 stars 28 forks source link

Add support for wildcard from and to #1

Closed kamranayub closed 10 years ago

kamranayub commented 10 years ago

Allow this:

fsm.from('*').to(...states)
fsm.from(...states).to('*')

OR

fsm.fromAny().to(states)
fsm.from(states).toAny()

I don't think passing wildcard to both is allowed, though.

eonarheim commented 10 years ago

I like the fromAny() and toAny()