Skip to content

Commit

Permalink
chore: update naming for consiceseness.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwebdev committed Nov 28, 2023
1 parent 31eb0ff commit 84c3503
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ export {
} from '@supabase/functions-js'
export * from '@supabase/realtime-js'
export { default as SupabaseClient } from './SupabaseClient'
export type {
SupabaseClientOptions,
QueryResult,
QueryResultData,
QueryResultError,
} from './lib/types'
export type { SupabaseClientOptions, QueryResult, QueryData, QueryError } from './lib/types'

/**
* Creates a new Supabase Client.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ export type GenericSchema = {
* Helper types for query results.
*/
export type QueryResult<T> = T extends PromiseLike<infer U> ? U : never
export type QueryResultData<T> = T extends PromiseLike<{ data: infer U }> ? Exclude<U, null> : never
export type QueryResultError = PostgrestError
export type QueryData<T> = T extends PromiseLike<{ data: infer U }> ? Exclude<U, null> : never
export type QueryError = PostgrestError

0 comments on commit 84c3503

Please sign in to comment.