Files
NapCatQQ/.pnpm-store/v3/files/a5/cde1c2bbf7026cf867569eee4789b5f2f0c890b9ed78db8482dffaa53bd6b6014a22783cc572c67c31b85e118e461471fa5f76b2e0c948890e67375becc44d
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

26 lines
1.2 KiB
Plaintext

import { TSchema, SchemaOptions } from '../schema/index.mjs';
import { Kind } from '../symbols/index.mjs';
export type StringFormatOption = 'date-time' | 'time' | 'date' | 'email' | 'idn-email' | 'hostname' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'uri' | 'uri-reference' | 'iri' | 'uuid' | 'iri-reference' | 'uri-template' | 'json-pointer' | 'relative-json-pointer' | 'regex' | ({} & string);
export type StringContentEncodingOption = '7bit' | '8bit' | 'binary' | 'quoted-printable' | 'base64' | ({} & string);
export interface StringOptions extends SchemaOptions {
/** The maximum string length */
maxLength?: number;
/** The minimum string length */
minLength?: number;
/** A regular expression pattern this string should match */
pattern?: string;
/** A format this string should match */
format?: StringFormatOption;
/** The content encoding for this string */
contentEncoding?: StringContentEncodingOption;
/** The content media type for this string */
contentMediaType?: string;
}
export interface TString extends TSchema, StringOptions {
[Kind]: 'String';
static: string;
type: 'string';
}
/** `[Json]` Creates a String type */
export declare function String(options?: StringOptions): TString;