Skip to content

ui-router-server / prerender / RulesWriter

Type Alias: RulesWriter ​

ts
type RulesWriter = (lines, context) => void | Promise<void>;

Defined in: prerender.ts:99

A `rules` function: receives every rules line once the pages are written, and writes whatever the host reads.

Parameters ​

ParameterType
linesRedirectLine[]
contextRulesContext

Returns ​

void | Promise<void>