UNPKG

@daveyplate/supabase-swr-entities

Version:

An entity management library for Supabase and SWR

16 lines (15 loc) 532 B
import { SupabaseClient } from '@supabase/supabase-js'; import { HTTP_METHOD } from 'next/dist/server/web/http'; import { IncomingHttpHeaders } from 'http'; interface EntityRouteOptions { supabase: SupabaseClient; method: HTTP_METHOD; headers: IncomingHttpHeaders; query: Record<string, any>; body?: Record<string, any>; } export declare function entityRoute({ supabase, method, headers, query, body }: EntityRouteOptions): Promise<{ status: number; body: Record<string, any> | undefined; }>; export {};