# @onetyped/typescript

> onetyped TypeScript integration

Latest version **1.0.1** (published 2023-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @onetyped/typescript
pnpm add @onetyped/typescript
yarn add @onetyped/typescript
bun add @onetyped/typescript
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-08-24 |
| First published | 2022-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Author | Sachin Raja |
| Maintainers | juliusmarminge, katt, sachinraja |
| Keywords | onetyped, typescript |

## Links

- npm: https://www.npmjs.com/package/@onetyped/typescript
- Repository: https://github.com/sachinraja/onetyped
- Homepage: https://github.com/sachinraja/onetyped/tree/main/packages/typescript#readme
- Issues: https://github.com/sachinraja/onetyped/issues
- npm.io page: https://npm.io/package/@onetyped/typescript

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-08-24
- 1.0.2-canary.2dfb1delosg (canary) — 2023-11-10
- 1.0.1-canary.980a702llc8 — 2023-08-15
- 1.0.0 — 2023-08-07
- 0.2.1-canary.27fed8clkvc — 2023-08-03
- 0.2.1-canary.41b7ab6lkv9 — 2023-08-03
- 0.2.0 — 2023-08-02
- 0.1.1-canary.2df8e02lkmd — 2023-07-28
- 0.1.1-canary.ece1c02lk6r — 2023-07-17
- 0.1.1-canary.9d768f3 — 2023-07-17
- 0.1.1-canary.823dc80 — 2023-07-17
- 0.1.0 — 2023-07-14
- 0.0.19 — 2023-07-13
- 0.0.18 — 2023-07-13
- 0.0.17 — 2023-07-12
- … 16 more at https://npm.io/package/@onetyped/typescript/versions

## README

# @onetyped/typebox

onetyped integration for the TypeScript AST/TypeChecker

## Usage

```ts
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:

<!-- dprint-ignore -->

```ts
{
	name: string
	age: number
}
```

---
_Source: https://npm.io/package/@onetyped/typescript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
