@contrail/types
Advanced tools
Comparing version 3.0.78 to 3.0.79-alpha.0
@@ -22,2 +22,3 @@ import { DateFormatingOptions, NumberFormatingOptions, TypeProperty } from '../type-properties'; | ||
formatObjectReference(object: any): any; | ||
formatTypeReference(object: any): string; | ||
formatUserList(object: any): any; | ||
@@ -24,0 +25,0 @@ formatValueWithPrecision(value: any, property: TypeProperty): number | null; |
@@ -110,2 +110,6 @@ "use strict"; | ||
} | ||
case type_properties_1.PropertyType.TypeReference: { | ||
formattedValue = this.formatTypeReference(value); | ||
break; | ||
} | ||
} | ||
@@ -172,2 +176,6 @@ return formattedValue; | ||
} | ||
formatTypeReference(object) { | ||
const label = object?.label || object?.typePath || ''; | ||
return label; | ||
} | ||
formatUserList(object) { | ||
@@ -174,0 +182,0 @@ const email = object?.email || ''; |
{ | ||
"name": "@contrail/types", | ||
"version": "3.0.78", | ||
"version": "3.0.79-alpha.0", | ||
"description": "Types Utility module", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
276679
7529
2