Skip to content

Commit 071f696

Browse files
fix:chagne GenericObject to Record<string,string>
1 parent 984eebe commit 071f696

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/SupabaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { fetchWithAuth } from './lib/fetch'
1212
import { isBrowser, stripTrailingSlash } from './lib/helpers'
1313
import { SupabaseAuthClient } from './lib/SupabaseAuthClient'
1414
import { SupabaseRealtimeClient } from './lib/SupabaseRealtimeClient'
15-
import { Fetch, GenericSchema, SupabaseClientOptions } from './lib/types'
15+
import { Fetch, GenericSchema, SupabaseClientOptions, SupabaseAuthClientOptions } from './lib/types'
1616

1717
const DEFAULT_OPTIONS = {
1818
schema: 'public',
@@ -270,7 +270,7 @@ export default class SupabaseClient<
270270
cookieOptions,
271271
multiTab,
272272
}: SupabaseAuthClientOptions,
273-
headers?: GenericObject,
273+
headers?: Record<string, string>,
274274
fetch?: Fetch
275275
) {
276276
const authHeaders = {

src/lib/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ export type SupabaseClientOptions<SchemaName> = {
4949
* Options passed to the storage-js instance
5050
*/
5151
// TODO: Add StorageOptions once ready
52-
storage?: GenericObject
52+
storage?: Record<string, string>
5353
/**
5454
* Options passed to the functions-js instance
5555
*/
5656
// TODO: Add Function Options once ready
57-
functions?: GenericObject
57+
functions?: Record<string, string>
5858
/**
5959
* A custom `fetch` implementation.
6060
*/
6161
fetch?: Fetch
6262
/**
6363
* Optional headers for initializing the client.
6464
*/
65-
headers?: GenericObject
65+
headers?: Record<string, string>
6666
/**
6767
* Throw errors, instead of returning them.
6868
*/

0 commit comments

Comments
 (0)