aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
Diffstat (limited to 'types')
-rw-r--r--types/ext/dictionary-data.d.ts2
-rw-r--r--types/ext/structured-content.d.ts14
2 files changed, 14 insertions, 2 deletions
diff --git a/types/ext/dictionary-data.d.ts b/types/ext/dictionary-data.d.ts
index 45db55bb..434f5a27 100644
--- a/types/ext/dictionary-data.d.ts
+++ b/types/ext/dictionary-data.d.ts
@@ -113,6 +113,8 @@ export type TermGlossaryDeinflection = [
export type TermImage = StructuredContent.ImageElementBase & {
// Compatibility properties
verticalAlign?: undefined;
+ border?: undefined;
+ borderRadius?: undefined;
sizeUnits?: undefined;
};
diff --git a/types/ext/structured-content.d.ts b/types/ext/structured-content.d.ts
index 4f613969..e40a6730 100644
--- a/types/ext/structured-content.d.ts
+++ b/types/ext/structured-content.d.ts
@@ -41,6 +41,8 @@ export type ImageAppearance = 'auto' | 'monochrome';
export type Image = DictionaryData.TermImage & {
verticalAlign: VerticalAlign;
+ border: string;
+ borderRadius: string;
sizeUnits: SizeUnits;
};
@@ -142,7 +144,7 @@ export type ImageElementBase = {
*/
width?: number;
/**
- * Preferred width of the image.
+ * Preferred height of the image.
*/
height?: number;
/**
@@ -151,7 +153,7 @@ export type ImageElementBase = {
*/
preferredWidth?: number;
/**
- * Preferred width of the image.
+ * Preferred height of the image.
* This is only used in the internal database.
*/
preferredHeight?: number;
@@ -204,6 +206,14 @@ export type ImageElement = ImageElementBase & {
*/
verticalAlign?: VerticalAlign;
/**
+ * Shorthand for border width, style, and color.
+ */
+ border?: string;
+ /**
+ * Roundness of the corners of the image's outer border edge.
+ */
+ borderRadius?: string;
+ /**
* The units for the width and height.
*/
sizeUnits?: SizeUnits;