From 3df802c19af277bcf46586909de2cbb41f34b962 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 27 Sep 2019 00:55:41 +0200 Subject: 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. --- core/api-sync.rst | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'core/api-sync.rst') diff --git a/core/api-sync.rst b/core/api-sync.rst index 701c7df5..207124aa 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 -- cgit v1.2.3