UNPKG

@tsed/cli

Version:
11 lines (10 loc) 258 B
export const helpers = {}; helpers.switch = function (value, options) { this.switch_value = value; return options.fn(this); }; helpers.case = function (value, options) { if (value == this.switch_value) { return options.fn(this); } };