Back to Firebase Js Sdk

ArraySchema class

docs-devsite/ai.arrayschema.md

12.12.11.5 KB
Original Source

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 %}

ArraySchema class

Schema class for "array" types. The items param should refer to the type of item that can be a member of the array.

<b>Signature:</b>

typescript
export declare class ArraySchema extends Schema 

<b>Extends:</b> Schema

Constructors

ConstructorModifiersDescription
(constructor)(schemaParams, items)Constructs a new instance of the <code>ArraySchema</code> class

Properties

PropertyModifiersTypeDescription
itemsTypedSchema

ArraySchema.(constructor)

Constructs a new instance of the ArraySchema class

<b>Signature:</b>

typescript
constructor(schemaParams: SchemaParams, items: TypedSchema);

Parameters

ParameterTypeDescription
schemaParamsSchemaParams
itemsTypedSchema

ArraySchema.items

<b>Signature:</b>

typescript
items: TypedSchema;