effect-io-ai

Package: effect
Module: Schema

Schema.isBase64

Validates that a string is valid Base64 encoded data.

Details

JSON Schema:

This check corresponds to a pattern constraint in JSON Schema that matches Base64 format.

Arbitrary:

When generating test data with fast-check, this applies a patterns constraint to ensure generated strings match the Base64 pattern.

Signature

declare const isBase64: (annotations?: Annotations.Filter) => SchemaAST.Filter<string>

Source

Since v4.0.0