@daveyplate/supabase-swr-entities
Version:
An entity management library for Supabase and SWR
16 lines (15 loc) • 538 B
TypeScript
import { SupabaseClient } from '@supabase/supabase-js';
import { HTTP_METHOD } from 'next/dist/server/web/http';
import { IncomingHttpHeaders } from 'http';
interface EntitiesRouteOptions {
supabase: SupabaseClient;
method: HTTP_METHOD;
headers: IncomingHttpHeaders;
query: Record<string, any>;
body?: Record<string, any>;
}
export declare function entitiesRoute({ supabase, method, headers, query, body }: EntitiesRouteOptions): Promise<{
status: number;
body: Record<string, any> | undefined;
}>;
export {};