UNPKG

dwnpm

Version:

Decentralized Registry Package Manager (DRPM) helps developers publish, install, find and manage Decentralized Packages (DPKs) published to Decentralized Web Nodes (DWNs). DRPM does this by looking up a Decentralized Identifier (DID) to find its DID docum

19 lines 942 B
import { DwnResponseStatus } from '@web5/agent'; import { ResponseInfo } from './types.js'; export declare class ResponseUtils { static is2xx: (code: number) => boolean; static is3xx: (code: number) => boolean; static OK: (ok: boolean) => boolean; static notOK: (ok: boolean) => boolean; static codeSuccess: (statusCode: number) => boolean; static codeFail: (statusCode: number) => boolean; static statusOk: (status: string) => status is "OK"; static statusNotOk: (status: string) => boolean; static dwnSuccess: ({ status: { code, detail } }: DwnResponseStatus) => boolean; static dwnFail: (status: DwnResponseStatus) => boolean; static success: ({ ok, code, status }: ResponseInfo) => boolean; static fail: (info: ResponseInfo) => boolean; static fetchSuccess: (response: Response) => boolean; static fetchFail: (response: Response) => boolean; } //# sourceMappingURL=response.d.ts.map