@ekb1zh/json-types
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

JSON data types definition

Install

npm i -D @ekb1zh/json-types

Using

import type * as Json from '@ekb1zh/json-types'

const jsonObject: Json.Object = {
  // your properties
}

Source

export type Value = Primitive | Array | Object
export type Primitive = null | boolean | number | string
export type Array = Value[]
export type Object = {
  [key: string]: Value
}

Readme

Keywords

Package Sidebar

Install

npm i @ekb1zh/json-types

Weekly Downloads

7

Version

3.0.1

License

MIT

Unpacked Size

3.83 kB

Total Files

12

Last publish

Collaborators

  • ekb1zh