@vttforge/core / ForeignDocumentFieldOptions
Interface: ForeignDocumentFieldOptions
Properties shared by every Foundry data field option object.
Mirrors the base DataFieldOptions interface documented at https://foundryvtt.com/api/classes/foundry.data.fields.DataField.html.
Extends
Properties
gmOnly?
readonlyoptionalgmOnly?:boolean
Inherited from
hint?
readonlyoptionalhint?:string
Inherited from
idOnly?
readonlyoptionalidOnly?:boolean
Keep the stored id instead of resolving the document.
With this off, the field initializes to a getter: reading the property gives you a function, and calling it looks the document up. That is why the two cases infer to different types.
initial?
readonlyoptionalinitial?:unknown
Inherited from
label?
readonlyoptionallabel?:string
Inherited from
nullable?
readonlyoptionalnullable?:boolean
Inherited from
readonly?
readonlyoptionalreadonly?:boolean
Inherited from
required?
readonlyoptionalrequired?:boolean
Inherited from
validate?
readonlyoptionalvalidate?: (value) =>boolean|undefined
Parameters
value
unknown
Returns
boolean | undefined
Inherited from
validationError?
readonlyoptionalvalidationError?:string