|
1
|
{"slug":"/references/utils/classes/utils.BaseSchemaProperty","title":"BaseSchemaProperty","frontmatter":{},"toc":[{"title":"Type parameters","id":"type-parameters","level":2},{"title":"constructor","id":"constructor","level":2},{"title":"Type Parameters","id":"constructor-type-parameters","level":3},{"title":"Properties","id":"properties","level":2},{"title":"Methods","id":"methods","level":2},{"title":"parse","id":"parse","level":3},{"title":"Parameters","id":"parse-parameters","level":4},{"title":"Returns","id":"parse-returns","level":4}],"blocks":[{"kind":"markdown","html":"Shared parse/type plumbing for schema properties used by DML, the search\nDSL, and any future domain language that describes typed fields. Fluent\nmodifiers (`default()`, `nullable()`, ...) belong to the domains that give\nthem meaning — a search field has no default value, so the base must not\noffer one."},{"kind":"heading","level":2,"text":"Type parameters","id":"type-parameters"},{"kind":"typeList","sectionTitle":"BaseSchemaProperty","types":[{"name":"T","type":"`object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":2,"text":"constructor","id":"constructor"},{"kind":"heading","level":3,"text":"Type Parameters","id":"constructor-type-parameters"},{"kind":"typeList","sectionTitle":"constructor","types":[{"name":"T","type":"`object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":2,"text":"Properties","id":"properties"},{"kind":"typeList","sectionTitle":"BaseSchemaProperty","types":[{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"T","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":2,"text":"Methods","id":"methods"},{"kind":"heading","level":3,"text":"parse","id":"parse"},{"kind":"markdown","html":"Returns the serialized metadata"},{"kind":"heading","level":4,"text":"Parameters","id":"parse-parameters"},{"kind":"typeList","sectionTitle":"parse","types":[{"name":"fieldName","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":4,"text":"Returns","id":"parse-returns"},{"kind":"typeList","sectionTitle":"parse","types":[{"name":"SchemaPropertyMetadata","type":"[SchemaPropertyMetadata](/references/types/types/types.SchemaPropertyMetadata)<T>","optional":false,"defaultValue":"","description":"Returns the serialized metadata","expandable":false,"children":[]}]}]} |