From 72a40070b0bc8b0454458cd83f887162bce97870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kalvis=20Kalni=C5=86=C5=A1?= Date: Fri, 28 Dec 2018 15:07:42 +0200 Subject: [PATCH] feat: introduce namespace FederationServer BREAKING CHANGES: Rename interfaces to - `FederationRecord` -> `FederationServer.Record` - `FederationOptions` -> `FederationServer.Options` --- types/stellar-sdk/index.d.ts | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/types/stellar-sdk/index.d.ts b/types/stellar-sdk/index.d.ts index ff93930fe9..bc1980d37f 100644 --- a/types/stellar-sdk/index.d.ts +++ b/types/stellar-sdk/index.d.ts @@ -967,23 +967,25 @@ export namespace Server { } } -export interface FederationRecord { - account_id: string; - memo_type?: string; - memo?: string; -} - -export interface FederationOptions { - allowHttp: boolean; -} export class FederationServer { - static createForDomain(domain: string, options?: FederationOptions): Promise; - static resolve(value: string, options?: FederationOptions): Promise; + static createForDomain(domain: string, options?: FederationServer.Options): Promise; + static resolve(value: string, options?: FederationServer.Options): Promise; - constructor(serverURL: string, domain: string, options?: FederationOptions) - resolveAccountId(account: string): Promise; - resolveAddress(address: string): Promise; - resolveTransactionId(transactionId: string): Promise; + constructor(serverURL: string, domain: string, options?: FederationServer.Options) + resolveAccountId(account: string): Promise; + resolveAddress(address: string): Promise; + resolveTransactionId(transactionId: string): Promise; +} +export namespace FederationServer { + interface Record { + account_id: string; + memo_type?: string; + memo?: string; + } + + interface Options { + allowHttp: boolean; + } } export namespace StellarTomlResolver {