Hierarchy
Properties
Immutable Record API
30
Returns
IterableIterator<["data", Blob | null]>
asImmutable
Returns
thisDeprecated
Use
withMutations()in place ofasMutable()andasImmutable().See Also
Map#asImmutable
asMutable
Returns
thisDeprecated
Use
withMutations(), making the changes inside its callback.See Also
Map#asMutable
Returns a new instance of this Record type with all values set to their default values.
Returns
this
Returns a new instance of this Record type with the value for the specific key set to its default value.
Parameters
otherunknownReturns
boolean
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
Parameters
keystringReturns
key is "data"
hashCode
Returns
numberDeprecated
Use
equals()to compare values.
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
Parameters
keyPathIterable<unknown>valueunknownReturns
this
Deeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Returns
{ data: unknown }data: unknown
The attachment's data as a Blob.
Default Value
null
toSeq
Returns
Keyed<"data", Blob | null>Deprecated
Use
toJSON(), which returns a plain object of its fields.
Parameters
keyPathIterable<unknown>updater(value: unknown) => unknownReturns
this
wasAltered
Returns
booleanDeprecated
Compare the result of
withMutations()with the original using!==; it returns the original when nothing changed.See Also
Map#wasAltered
Note: Not all methods can be used on a mutable collection or within
withMutations! Onlysetmay be used mutatively.Parameters
mutator(mutable: this) => unknownReturns
thisSee Also
Map#withMutations
The attachment's data as a Blob.