Skip to content

Commit

Permalink
feat: rename TreeOptions to Options
Browse files Browse the repository at this point in the history
  • Loading branch information
florianstancioiu committed Mar 14, 2024
1 parent b2d28f2 commit 3006f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cosmoz-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Navigator through object with treelike datastructure and default settings.
@demo demo/index.html
*/

export type TreeOptions = {
export type Options = {
childProperty?: string;
searchProperty?: string;
pathLocatorSeparator?: string;
Expand Down Expand Up @@ -32,7 +32,7 @@ export class Tree {
* @param {String} options.pathStringSeparator ["/"] (The string the path should get separated with.)
* @param {String} options.pathLocatorSeparator ["."] (The string which separates the path segments of a path locator.)
*/
constructor(treeData: object, options: TreeOptions = {}) {
constructor(treeData: object, options: Options = {}) {
this._treeData = treeData;
this._roots = Object.values(treeData);

Expand Down

0 comments on commit 3006f0b

Please sign in to comment.