Back to Firebase Js Sdk

StringSchema class

docs-devsite/ai.stringschema.md

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

StringSchema class

Schema class for "string" types. Can be used with or without enum values.

<b>Signature:</b>

typescript
export declare class StringSchema extends Schema 

<b>Extends:</b> Schema

Constructors

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

Properties

PropertyModifiersTypeDescription
enumstring[]

StringSchema.(constructor)

Constructs a new instance of the StringSchema class

<b>Signature:</b>

typescript
constructor(schemaParams?: SchemaParams, enumValues?: string[]);

Parameters

ParameterTypeDescription
schemaParamsSchemaParams
enumValuesstring[]

StringSchema.enum

<b>Signature:</b>

typescript
enum?: string[];