tsondb 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ export type DisplayNameCustomizer<T extends Type> = (params: {
14
14
  instanceDisplayNameLocaleId: string | undefined;
15
15
  locales: string[];
16
16
  getInstanceById: (id: string) => unknown;
17
- getDisplayNameForInstanceId: (id: string) => string | undefined;
17
+ getDisplayNameForInstanceId: (id: string) => DisplayNameResult | undefined;
18
18
  getChildInstancesForInstanceId: GetChildInstancesForInstanceId;
19
19
  }) => DisplayNameResult;
20
20
  export declare const getDisplayNameFromEntityInstance: (entity: EntityDecl, instanceContainer: InstanceContainer, getInstanceById: GetInstanceById, getChildInstancesForInstanceId: GetChildInstancesForInstanceId, locales: string[], defaultName?: string, useCustomizer?: boolean) => DisplayNameResult;
@@ -14,7 +14,7 @@ export const getDisplayNameFromEntityInstance = (entity, instanceContainer, getI
14
14
  const result = getInstanceById(id);
15
15
  if (result) {
16
16
  const { entity, instance } = result;
17
- return getDisplayNameFromEntityInstance(entity, instance, getInstanceById, getChildInstancesForInstanceId, locales, id).name;
17
+ return getDisplayNameFromEntityInstance(entity, instance, getInstanceById, getChildInstancesForInstanceId, locales, id);
18
18
  }
19
19
  else {
20
20
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsondb",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Lukas Obermann",