Skip to main content
This release is 3 versions behind 0.4.4 — the latest version of @oridune/validator. Jump to latest

Oridune validator is a TypeScript-first schema declaration and validation library like Zod.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
41%
Published
a week ago (0.4.1)
class AnyValidator

Constructors

new
AnyValidator(options?: IAnyValidatorOptions)

Type Parameters

Shape extends any = any
Input extends any = any
Output = Input

Methods

Static Properties

literal: <T extends TPrimitive>(
value: T,
) => unknown
value: <T>(
value: T,
) => unknown

Add Package

deno add jsr:@oridune/validator

Import symbol

import { AnyValidator } from "@oridune/validator";

---- OR ----

Import directly with a jsr specifier

import { AnyValidator } from "jsr:@oridune/validator";

Add Package

npx jsr add @oridune/validator

Import symbol

import { AnyValidator } from "@oridune/validator";

Add Package

yarn dlx jsr add @oridune/validator

Import symbol

import { AnyValidator } from "@oridune/validator";

Add Package

pnpm dlx jsr add @oridune/validator

Import symbol

import { AnyValidator } from "@oridune/validator";

Add Package

bunx jsr add @oridune/validator

Import symbol

import { AnyValidator } from "@oridune/validator";