Skip to content

Commit

Permalink
again?
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 13, 2023
1 parent dd00d0e commit 31a3670
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/kit/src/exports/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export interface Adapter {
export type LoadProperties<input extends Record<string, any> | void> = input extends void
? undefined // needs to be undefined, because void will break intellisense
: input extends Record<string, any>
? input
: unknown;
? input
: unknown;

export type AwaitedActions<T extends Record<string, (...args: any) => any>> = OptionalUnion<
{
Expand All @@ -67,8 +67,8 @@ export interface ActionFailure<T extends Record<string, unknown> | undefined = u
type UnpackValidationError<T> = T extends ActionFailure<infer X>
? X
: T extends void
? undefined // needs to be undefined, because void will corrupt union type
: T;
? undefined // needs to be undefined, because void will corrupt union type
: T;

/**
* This object is passed to the `adapt` function of adapters.
Expand Down

0 comments on commit 31a3670

Please sign in to comment.