diff --git a/src/objects/flatten.ts b/src/objects/flatten.ts index 871d907..dc5a26a 100644 --- a/src/objects/flatten.ts +++ b/src/objects/flatten.ts @@ -17,7 +17,7 @@ function _flatten>( }, initialResult); } -function flatten>( +export function flatten>( obj: Record ): Result { return _flatten(obj); diff --git a/src/objects/unflatten.ts b/src/objects/unflatten.ts index c8a5e71..1a79dd9 100644 --- a/src/objects/unflatten.ts +++ b/src/objects/unflatten.ts @@ -17,7 +17,7 @@ function setNestedValue( }; } -function unflatten( +export function unflatten( data: object, delimiter: Character ): Result {