flatten-type
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Introduction

Flatten nested data while preserving types.

Install

npm i flatten-type

Usage

import * as flat from "flatten-type"

const nested = // define your nested data

const flatten = flat.flatten(nested)
const reconstructed : TypeHint = flat.unflatten(flatten)

Readme

Keywords

Package Sidebar

Install

npm i flatten-type

Weekly Downloads

1

Version

1.0.1

License

BSD-3-Clause

Unpacked Size

8.06 kB

Total Files

6

Last publish

Collaborators

  • ruffnex