Skip to content

Commit

Permalink
fix linter, remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojfduarte committed Sep 4, 2024
1 parent 772dcd9 commit 58cdc7b
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions src/createServerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ import type {
} from "@supabase/supabase-js/dist/module/lib/types";

import { VERSION } from "./version";
import {
DEFAULT_COOKIE_OPTIONS,
combineChunks,
createChunks,
deleteChunks,
isBrowser,
isChunkLike,
} from "./utils";

import { createStorageFromOptions, applyServerStorage } from "./cookies";
import type {
CookieOptionsWithName,
Expand All @@ -28,11 +21,11 @@ import type {
export function createServerClient<
Database = any,
SchemaName extends string & keyof Database = "public" extends keyof Database
? "public"
: string & keyof Database,
? "public"
: string & keyof Database,
Schema extends GenericSchema = Database[SchemaName] extends GenericSchema
? Database[SchemaName]
: any,
? Database[SchemaName]
: any,
>(
supabaseUrl: string,
supabaseKey: string,
Expand Down Expand Up @@ -107,11 +100,11 @@ export function createServerClient<
export function createServerClient<
Database = any,
SchemaName extends string & keyof Database = "public" extends keyof Database
? "public"
: string & keyof Database,
? "public"
: string & keyof Database,
Schema extends GenericSchema = Database[SchemaName] extends GenericSchema
? Database[SchemaName]
: any,
? Database[SchemaName]
: any,
>(
supabaseUrl: string,
supabaseKey: string,
Expand All @@ -125,11 +118,11 @@ export function createServerClient<
export function createServerClient<
Database = any,
SchemaName extends string & keyof Database = "public" extends keyof Database
? "public"
: string & keyof Database,
? "public"
: string & keyof Database,
Schema extends GenericSchema = Database[SchemaName] extends GenericSchema
? Database[SchemaName]
: any,
? Database[SchemaName]
: any,
>(
supabaseUrl: string,
supabaseKey: string,
Expand Down

0 comments on commit 58cdc7b

Please sign in to comment.