Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Properties

fn

fn: ConditionFn | string

fn is a ConditionFn or ConditionFnLike string _ is underscore

example

option.fn = (index: string, value: string, _?) => parseInt(value) > 1;
option.fn = "value > 1";

Optional next

next should be MiddlewareConfig or "Gather"/"Noop"

Optional type

type: "white" | "black"

type of Condition filter ( whitelisted / blacklisted ). The default is whitelist. type参数指定该Condition过滤器是白名单过滤还是黑名单, 默认是白名单