MCPcopy
hub / github.com/sindresorhus/ow / true

Method true

source/predicates/boolean.ts:14–19  ·  view source on GitHub ↗

Test a boolean to be true.

()

Source from the content-addressed store, hash-verified

12 Test a boolean to be true.
13 */
14 get true(): this {
15 return this.addValidator({
16 message: (value, label) => `Expected ${label} to be true, got ${value}`,
17 validator: value => value,
18 });
19 }
20
21 /**
22 Test a boolean to be false.

Callers 5

nullable.tsFile · 0.80
test.tsFile · 0.80
custom-message.tsFile · 0.80
is-predicate.tsFile · 0.80
dist-validation.tsFile · 0.80

Calls 1

addValidatorMethod · 0.80

Tested by

no test coverage detected