# Type Alias HookMatchCriterion

HookMatchCriterion: string | IStateMatch | boolean

Hook Criterion used to match a transition.

A [[Glob]] string that matches the name of a state.

Or, a function with the signature `function(state, transition) { return matches; }` which should return a boolean to indicate if a state matches.

Or, `true` to always match

- Defined in src/router/transition/interface.ts:908