Hierarchy
Properties
attachmentId
description
fileName
fileSize
id
Immutable Record API
30
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
delete<K extends keyof { … }>(key: K): 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.
hashCode
Returns
numberDeprecated
Use
equals()to compare values.
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
remove<K extends keyof { … }>(key: K): 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
{ … }
Shallowly converts this Record to equivalent native JavaScript Object.
Returns
{ … }
Shallowly converts this Record to equivalent JavaScript Object.
Returns
{ … }
toSeq
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
This record is used to persist the information for an embedded file.