docs-devsite/ai.anyofschema.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 representing a value that can conform to any of the provided sub-schemas. This is useful when a field can accept multiple distinct types or structures.
<b>Signature:</b>
export declare class AnyOfSchema extends Schema
<b>Extends:</b> Schema
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(schemaParams) | Constructs a new instance of the <code>AnyOfSchema</code> class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| anyOf | TypedSchema<!-- -->[] |
Constructs a new instance of the AnyOfSchema class
<b>Signature:</b>
constructor(schemaParams: SchemaParams & {
anyOf: TypedSchema[];
});
| Parameter | Type | Description |
|---|---|---|
| schemaParams | SchemaParams & { anyOf: TypedSchema<!-- -->[]; } |
<b>Signature:</b>
anyOf: TypedSchema[];