Options
All
  • Public
  • Public/Protected
  • All
Menu

Module types

Index

Interfaces

Type aliases

Type aliases

Infer

Infer<T>: T["_type"]

Infers a type

import yxc, { Infer } from "@dotvirus/yxc"

const myObject = yxc.object({
  name: yxc.string()
});

type MyType = Infer<typeof myObject>;

Type parameters

Rule

Rule<T>: (val: T, key: string[], root: any) => boolean | string

Type parameters

  • T = any

Type declaration

    • (val: T, key: string[], root: any): boolean | string
    • Parameters

      • val: T
      • key: string[]
      • root: any

      Returns boolean | string

Generated using TypeDoc