@rxap/config
Version:
Provides a configuration service for Angular applications, allowing you to load and manage application settings from various sources such as static files, URLs, local storage, and URL parameters. It supports schema validation and provides utilities for ac
13 lines (12 loc) • 822 B
TypeScript
import { Observable } from 'rxjs';
/**
* Similar to Promise.race() but only resolves with the first successful promise.
* It will only reject if all promises reject.
*/
export declare function raceSuccess<T>(promises: Promise<T>[]): Promise<T>;
export declare function dnsResolver(endpoint: string, name: string, type: string): Promise<string>;
export declare function dnsLookup(name: string, type: string, dnsServers?: string[]): Promise<string>;
export declare function fetchContentViaHttp(url: string): Observable<Blob | null>;
export declare function fetchCidContentViaHttp(cid: string, path?: string): Observable<Blob | null>;
export declare function fetchCidContent(cid: string, path?: string): Promise<Blob | null>;
export declare function fetchCidContentAsJson(cid: string, path?: string): Promise<any | null>;