UNPKG

@parischap/pretty-print

Version:
14 lines 549 B
/** * 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