docs-devsite/ai.stringschema.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 "string" types. Can be used with or without enum values.
<b>Signature:</b>
export declare class StringSchema extends Schema
<b>Extends:</b> Schema
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(schemaParams, enumValues) | Constructs a new instance of the <code>StringSchema</code> class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| enum | string[] |
Constructs a new instance of the StringSchema class
<b>Signature:</b>
constructor(schemaParams?: SchemaParams, enumValues?: string[]);
| Parameter | Type | Description |
|---|---|---|
| schemaParams | SchemaParams | |
| enumValues | string[] |
<b>Signature:</b>
enum?: string[];