summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/api-common.rst31
1 files changed, 31 insertions, 0 deletions
diff --git a/core/api-common.rst b/core/api-common.rst
index 7ee4769f..155857c0 100644
--- a/core/api-common.rst
+++ b/core/api-common.rst
@@ -275,6 +275,37 @@ Integers
// JavaScript numbers restricted to integers.
type Integer = number;
+Ages
+^^^^
+
+.. ts:def:: Age
+
+ // An age is an integer between 0 and 255 measured in years.
+ type Age = number;
+
+Versions
+^^^^^^^^
+
+We use the type ``LibtoolVersion`` in the design documents to refer to a string
+that represents a version with the semantic as defined by
+`libtool <https://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html>`__.
+
+.. ts:def:: LibtoolVersion
+
+ // Version information in libtool version format and semantics
+ // current[:revision[:age]], f.e. "1", "2:0" or "3:1:2".
+ // see https://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html.
+ type LibtoolVersion = string;
+
+We use the type ``SemVer`` to refer to a string that represents a version with
+the semantic as defined by `semantic versioning <https://semver.org/>`__.
+
+.. ts:def:: SemVer
+
+ // Version information in semantic versioning format and semantics,
+ // like "X.Z.Y", see https://semver.org/.
+ type SemVer = string;
+
Objects
^^^^^^^