Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jamiebuilds/json-parser-in-typescript-very-bad-idea-please-dont-use

JSON Parser written entirely in TypeScript's type system
https://github.com/jamiebuilds/json-parser-in-typescript-very-bad-idea-please-dont-use

Last synced: 13 days ago
JSON representation

JSON Parser written entirely in TypeScript's type system

Awesome Lists containing this project

README

        

# `json-parser-in-typescript-very-bad-idea-please-dont-use`

> JSON Parser written entirely in TypeScript's type system

```ts
import type { ParseJson } from "json-parser-in-typescript-very-bad-idea-please-dont-use"

type Person = ParseJson<'{ "name": "Jamie Kyle", "twitter": "https://twitter.com/buildsghost" }'>
// {
// "name": "Jamie Kyle",
// } & {
// "twitter": "https://twitter.com/buildsghost"
// }
```

[Follow me nerds](https://twitter.com/buildsghost)