PerspectPerspectDocs
Go to Admin
View as Markdown

Validators

Shared input validators used across the SDK — email shape, URL normalization, slug safety. Import directly when you need the same checks the SDK applies internally.

See the API Reference for the full type and function surface, regenerated from source on every build.

Quick Start

import { isValidEmail } from 'perspectapi-ts-sdk';

if (!isValidEmail(input)) throw new Error('bad email');