UNPKG

@helia/verified-fetch

Version:

A fetch-like API for obtaining verified & trustless IPFS content on the web

13 lines 444 B
export interface ServerTimingSuccess<T> { error: null; result: T; header: string; } export interface ServerTimingError { result: null; error: Error; header: string; } export type ServerTimingResult<T> = ServerTimingSuccess<T> | ServerTimingError; export declare function serverTiming<T>(name: string, description: string, fn: () => Promise<T>): Promise<ServerTimingResult<T>>; //# sourceMappingURL=server-timing.d.ts.map