MCPcopy Create free account
hub / github.com/cryptii/cryptii / setMinSize

Method setMinSize

src/Field/Byte.js:43–49  ·  view source on GitHub ↗

* Sets min size in bytes. * @param {?number} minSize Minimum size in bytes * @param {boolean} [revalidate=true] Wether to revalidate current value. * @return {ByteField} Fluent interface

(minSize, revalidate = true)

Source from the content-addressed store, hash-verified

41 * @return {ByteField} Fluent interface
42 */
43 setMinSize (minSize, revalidate = true) {
44 if (this._minSize === minSize) {
45 return this
46 }
47 this._minSize = minSize !== null ? parseInt(minSize) : null
48 return revalidate ? this.revalidateValue() : this
49 }
50
51 /**
52 * Returns max size in bytes.

Callers 2

constructorMethod · 0.95
settingValueDidChangeMethod · 0.80

Calls 1

revalidateValueMethod · 0.80

Tested by

no test coverage detected