Socket
Socket
Sign inDemoInstall

@onetyped/typescript

Package Overview
Dependencies
2
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @onetyped/typescript

onetyped TypeScript integration


Version published
Weekly downloads
330
decreased by-27.15%
Maintainers
3
Install size
39.9 kB
Created
Weekly downloads
 

Readme

Source

@onetyped/typebox

onetyped integration for the TypeScript AST/TypeChecker

Usage

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

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

// print TypeScript AST type representation of schema
console.log(toTypeNode(schema))

Output:

{
	name: string
	age: number
}

Keywords

FAQs

Last updated on 24 Aug 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc