@parischap/pretty-print
Version:
A functional library to pretty-print and treeify objects
14 lines • 549 B
JavaScript
/**
* This module implements a Type that builds a ValueBasedStyler (see ValueBasedStyler.ts) from an
* Option (see Option.ts) and a partName.
*/
import { pipe } from 'effect';
import * as PPStyleMap from './StyleMap.js';
/**
* Builds a ValueBasedStyler (see ValueBasedStyler.ts) from the `partName` style of the provided
* `option.styleMap` (see StyleMap.ts)
*
* @category Constructors
*/
export const fromOption = option => partName => pipe(option.styleMap, PPStyleMap.get(partName));
//# sourceMappingURL=ValueBasedStylerConstructor.js.map