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

Method addRule

src/ui/type/ValidatedInput.ts:48–57  ·  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 2

linkSettingMethod · 0.95
MainMenu.tsFile · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected