1.0.1 • Published 5 months ago
flatten-type v1.0.1
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)