Skip to content

Commit 9bfac7f

Browse files
authored
fix(supabase): inline string literal in databasewithoutinternals type (#1986)
1 parent f79f179 commit 9bfac7f

File tree

1 file changed

+1
-4
lines changed
  • packages/core/supabase-js/src/lib

1 file changed

+1
-4
lines changed

packages/core/supabase-js/src/lib/types.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ export type QueryResult<T> = T extends PromiseLike<infer U> ? U : never
136136
export type QueryData<T> = T extends PromiseLike<{ data: infer U }> ? Exclude<U, null> : never
137137
export type QueryError = PostgrestError
138138

139-
/** @internal Key used for Supabase internal metadata in Database types. */
140-
type InternalSupabaseKey = '__InternalSupabase'
141-
142139
/**
143140
* Strips internal Supabase metadata from Database types.
144141
* Useful for libraries defining generic constraints on Database types.
@@ -148,4 +145,4 @@ type InternalSupabaseKey = '__InternalSupabase'
148145
* type CleanDB = DatabaseWithoutInternals<Database>
149146
* ```
150147
*/
151-
export type DatabaseWithoutInternals<DB> = Omit<DB, InternalSupabaseKey>
148+
export type DatabaseWithoutInternals<DB> = Omit<DB, '__InternalSupabase'>

0 commit comments

Comments
 (0)