File size: 1,271 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
import flatModule from 'flat'
import { DELIMITER } from './constants.js'
import { selectParams } from './select-params.js'
import { filterOutParams } from './filter-out-params.js'
import { set } from './set.js'
import { get } from './get.js'
import { merge } from './merge.js'
import { pathToParts } from './path-to-parts.js'
import { removePath } from './remove-path.js'
export type FlatModuleType = {
flatten: typeof flatModule.flatten;
unflatten: typeof flatModule.unflatten;
set: typeof set;
get: typeof get;
selectParams: typeof selectParams;
filterOutParams: typeof filterOutParams;
DELIMITER: typeof DELIMITER;
pathToParts: typeof pathToParts;
removePath: typeof removePath;
merge: typeof merge;
}
/**
* @module flat
* @name flat
* @new in version 3.3
* @load ./flat.doc.md
*/
export const flat: FlatModuleType = {
/**
* Raw `flatten` function exported from original {@link https://www.npmjs.com/package/flat flat}
* package.
*/
flatten: flatModule.flatten,
/**
* Raw `unflatten` function exported from original {@link https://www.npmjs.com/package/flat flat}
* package.
*/
unflatten: flatModule.unflatten,
set,
get,
selectParams,
filterOutParams,
removePath,
DELIMITER,
pathToParts,
merge,
}
|