str
str(
value):StrValue
Defined in: src/attr/values.ts:279
A UTF-8 string of at most 128 bytes, indexed for equality and prefix (STARTSWITH) matching.
The limit is on bytes, not characters: a string of 128 emoji does not fit.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Throws
Section titled “Throws”If the string exceeds 128 UTF-8 bytes.
Example
Section titled “Example”str("Bob")