mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
refactor: move Config
This commit is contained in:
Vendored
+6
-6
@@ -446,6 +446,12 @@ export class NotFoundError extends NetworkError {}
|
||||
export class BadRequestError extends NetworkError {}
|
||||
export class BadResponseError extends NetworkError {}
|
||||
|
||||
export namespace Config {
|
||||
function setAllowHttp(allow: boolean): void;
|
||||
function isAllowHttp(): boolean;
|
||||
function setDefault(): void;
|
||||
}
|
||||
|
||||
export class CallBuilder<T extends Record> {
|
||||
constructor(serverUrl: string)
|
||||
call(): Promise<CollectionPage<T>>;
|
||||
@@ -888,12 +894,6 @@ export class AssetsCallBuilder extends CallBuilder<AssetRecord> {
|
||||
forIssuer(value: string): this;
|
||||
}
|
||||
|
||||
export namespace Config {
|
||||
function setAllowHttp(allow: boolean): void;
|
||||
function isAllowHttp(): boolean;
|
||||
function setDefault(): void;
|
||||
}
|
||||
|
||||
export class EffectCallBuilder extends CallBuilder<EffectRecord> {
|
||||
forAccount(accountId: string): this;
|
||||
forLedger(sequence: string): this;
|
||||
|
||||
Reference in New Issue
Block a user