@clipwhisperer/common
Version:
ClipWhisperer Common - Shared library providing core utilities, database schemas, authentication, bucket management, and common functionality across all ClipWhisperer microservices
10 lines (9 loc) • 382 B
TypeScript
import z from "zod";
/**
*
* @param schema - The schema to parse the response with
* @param url - The URL to request
* @param headers - The headers to send with the request
* @returns The parsed response or null if the request fails
*/
export declare function request<S extends z.ZodType>(schema: S, url: string, headers?: Record<string, string>): Promise<z.infer<S> | null>;