summaryrefslogtreecommitdiff
path: root/core/api-sync.rst
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-09-27 00:55:41 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-09-27 00:55:41 +0200
commit3df802c19af277bcf46586909de2cbb41f34b962 (patch)
treef82f23e54c44715e3f640c523f3f396023c7b2ea /core/api-sync.rst
parent8bfd85f7c50ffad565e8111891eb61a47cc6f969 (diff)
downloaddocs-3df802c19af277bcf46586909de2cbb41f34b962.tar.gz
docs-3df802c19af277bcf46586909de2cbb41f34b962.tar.bz2
docs-3df802c19af277bcf46586909de2cbb41f34b962.zip
The big doc refactoring
Use new ts:def directive for TypeScript definitions and use ``foo`` for literal text. The form `foo` is an interpreted role. Also, only use the interpreted role form for references in TS definition comments.
Diffstat (limited to 'core/api-sync.rst')
-rw-r--r--core/api-sync.rst14
1 files changed, 5 insertions, 9 deletions
diff --git a/core/api-sync.rst b/core/api-sync.rst
index 701c7df..207124a 100644
--- a/core/api-sync.rst
+++ b/core/api-sync.rst
@@ -110,11 +110,9 @@ Receiving Terms of Service
**Response:**
- Returns a `SyncTermsOfServiceResponse`_.
+ Returns a `SyncTermsOfServiceResponse`.
- .. _SyncTermsOfServiceResponse:
- .. _tsref-type-SyncTermsOfServiceResponse:
- .. code-block:: tsref
+ .. ts:def:: SyncTermsOfServiceResponse
interface SyncTermsOfServiceResponse {
// maximum wallet database backup size supported
@@ -125,7 +123,7 @@ Receiving Terms of Service
// how long after an account (or device) becomes dormant does the
// service expire the respective records?
- inactive_expiration: relative-time;
+ inactive_expiration: RelativeTime;
// Fee for an account, per year.
annual_fee: Amount;
@@ -140,11 +138,9 @@ Receiving Terms of Service
**Response:**
- Returns a `SaltResponse`_.
+ Returns a `SaltResponse`.
- .. _SaltResponse:
- .. _tsref-type-SaltResponse:
- .. code-block:: tsref
+ .. ts:def:: SaltResponse
interface SaltResponse {
// salt value, at least 128 bits of entropy