You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Therefore DataField#initial is called with source: v which will be some Document. I've typed DataField#initial based off of this but there may be counterexamples out there.
The text was updated successfully, but these errors were encountered:
LukeAbby
changed the title
Countexample to DataField#initial: (source: DataModel.Any) => InitializedType
Counter-example for typing DataField#initial as (source: DataModel.Any) => InitializedTypeAug 5, 2024
So far I've only identified one place that a
DataField#initial
is called with an argument and that is inEmbeddedCollectionField#_cleanType
:this.schema
is aSchemaField
so this callsSchemaField#clean
(no specific override here) so it goes toDataField#clean
which has this line:and
getInitialValue
is:Therefore
DataField#initial
is called withsource: v
which will be someDocument
. I've typedDataField#initial
based off of this but there may be counterexamples out there.The text was updated successfully, but these errors were encountered: