Socket
Book a DemoInstallSign in
Socket

@onetyped/core

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onetyped/core

one schema to rule them all

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
3
Created
Source

@onetyped/core

This package contains functions to define your onetyped schema. Each function creates a node that makes up your schema. Some utilities for manipulating the schema are also provided.

Usage

import { number, object, string } from '@onetyped/core'

const schema = object({
	name: string(),
	age: number(),
})

// Print JSON representation of schema
console.log(schema)

Keywords

onetyped

FAQs

Package last updated on 24 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts