Skip to content

Commit

Permalink
Fix errors import in other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Mar 21, 2024
1 parent d42c9da commit 7076263
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/auth-remix/src/server.ts
Expand Up @@ -8,7 +8,6 @@ import {
type TokenData,
type emailPasswordProviderName,
ConfigurationError,
MissingConfigurationError,
InvalidDataError,
PKCEError,
BackendError,
Expand All @@ -31,7 +30,10 @@ export default function createServerAuth(
return new RemixServerAuth(client, options);
}

type ParamsOrError<Result extends object, ErrorDetails extends object = {}> =
type ParamsOrError<
Result extends object,
ErrorDetails extends object = object
> =
| ({ error: null } & { [Key in keyof ErrorDetails]?: undefined } & Result)
| ({ error: Error } & ErrorDetails & { [Key in keyof Result]?: undefined });

Expand Down
5 changes: 4 additions & 1 deletion packages/auth-sveltekit/src/server.ts
Expand Up @@ -32,7 +32,10 @@ export type BuiltinProviderNames =
| BuiltinOAuthProviderNames
| typeof emailPasswordProviderName;

type ParamsOrError<Result extends object, ErrorDetails extends object = {}> =
type ParamsOrError<
Result extends object,
ErrorDetails extends object = object
> =
| ({ error: null } & { [Key in keyof ErrorDetails]?: undefined } & Result)
| ({ error: Error } & ErrorDetails & { [Key in keyof Result]?: undefined });

Expand Down

0 comments on commit 7076263

Please sign in to comment.