mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
feat: introduce namespace FederationServer
BREAKING CHANGES: Rename interfaces to - `FederationRecord` -> `FederationServer.Record` - `FederationOptions` -> `FederationServer.Options`
This commit is contained in:
Vendored
+17
-15
@@ -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<FederationServer>;
|
||||
static resolve(value: string, options?: FederationOptions): Promise<FederationRecord>;
|
||||
static createForDomain(domain: string, options?: FederationServer.Options): Promise<FederationServer>;
|
||||
static resolve(value: string, options?: FederationServer.Options): Promise<FederationServer.Record>;
|
||||
|
||||
constructor(serverURL: string, domain: string, options?: FederationOptions)
|
||||
resolveAccountId(account: string): Promise<FederationRecord>;
|
||||
resolveAddress(address: string): Promise<FederationRecord>;
|
||||
resolveTransactionId(transactionId: string): Promise<FederationRecord>;
|
||||
constructor(serverURL: string, domain: string, options?: FederationServer.Options)
|
||||
resolveAccountId(account: string): Promise<FederationServer.Record>;
|
||||
resolveAddress(address: string): Promise<FederationServer.Record>;
|
||||
resolveTransactionId(transactionId: string): Promise<FederationServer.Record>;
|
||||
}
|
||||
export namespace FederationServer {
|
||||
interface Record {
|
||||
account_id: string;
|
||||
memo_type?: string;
|
||||
memo?: string;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
allowHttp: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace StellarTomlResolver {
|
||||
|
||||
Reference in New Issue
Block a user