docs-devsite/ai.objectschema.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
Schema class for "object" types. The properties param must be a map of Schema objects.
<b>Signature:</b>
export declare class ObjectSchema extends Schema
<b>Extends:</b> Schema
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(schemaParams, properties, optionalProperties) | Constructs a new instance of the <code>ObjectSchema</code> class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| optionalProperties | string[] | ||
| properties | { [k: string]: TypedSchema<!-- -->; } |
Constructs a new instance of the ObjectSchema class
<b>Signature:</b>
constructor(schemaParams: SchemaParams, properties: {
[k: string]: TypedSchema;
}, optionalProperties?: string[]);
| Parameter | Type | Description |
|---|---|---|
| schemaParams | SchemaParams | |
| properties | { [k: string]: TypedSchema<!-- -->; } | |
| optionalProperties | string[] |
<b>Signature:</b>
optionalProperties: string[];
<b>Signature:</b>
properties: {
[k: string]: TypedSchema;
};