Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

untyped

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

untyped - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

2

dist/untyped.d.ts

@@ -5,3 +5,3 @@ declare type JSValue = string | number | bigint | boolean | symbol | Function | Array<any> | undefined | object | null;

interface TypeDescriptor {
type?: JSType | JSType[];
type?: JSType | JSType[] | string | string[];
items?: TypeDescriptor | TypeDescriptor[];

@@ -8,0 +8,0 @@ }

{
"name": "untyped",
"version": "0.2.9",
"version": "0.2.10",
"description": "",

@@ -5,0 +5,0 @@ "repository": "unjs/untyped",

@@ -95,3 +95,3 @@ # untyped

```js
import { resolveSchema } from 'untyped'
import { resolveSchema, generateTypes } from 'untyped'

@@ -121,2 +121,31 @@ const types = generateTypes(resolveSchema(defaultPlanet))

### Generating markdown
```js
import { resolveSchema, generateTypes, generateMarkdown } from 'untyped'
const markdown = generateMarkdown(generateTypes(resolveSchema(defaultPlanet)))
```
Output:
```markdown
# `name`
- **Type**: `string`
- **Default**: `"earth"`
# `specs`
## `gravity`
- **Type**: `number`
- **Default**: `9.8`
## `moons`
- **Type**: `array`
- **Default**: `["moon"]`
```
## Contribution

@@ -123,0 +152,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc