Skip to content

conversion-library / ArrayToTreeOptionsType

Type Alias: ArrayToTreeOptionsType<IdK, parentIdK>

ts
type ArrayToTreeOptionsType<IdK, parentIdK>: {
  idKey: IdK;
  parentIdKey: parentIdK;
};

Type Parameters

IdK = string

parentIdK = string

Type declaration

idKey?

ts
optional idKey: IdK;

parentIdKey?

ts
optional parentIdKey: parentIdK;

Defined in

lib/data-structure/arrayAndTree.ts:1