Function: fact()
August 8, 2026 ยท View on GitHub
@plures/praxis / index / fact
Function: fact()
fact(
tag,payload):PraxisFact
Defined in: packages/praxis-core/src/rule-result.ts:137
Convenience helper to create a typed fact object.
Shorthand for { tag, payload } used inside RuleResult.emit() calls.
Parameters
tag
string
The fact type tag (e.g. 'sprint.behind')
payload
unknown
The fact payload data
Returns
A PraxisFact with the given tag and payload
Example
return RuleResult.emit([fact('sprint.behind', { deficit: 3 })]);