MCPcopy Create free account
hub / github.com/WarFrontIO/client / addRule

Method addRule

src/util/settings/StringSetting.ts:41–44  ·  view source on GitHub ↗

* Adds a validation rule to the input element. * @param errorMessage The error message to display if the rule fails * @param rule The validation rule

(errorMessage: string, rule: (value: string) => boolean)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

asAddressMethod · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected