Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Huliiiiii committed Oct 1, 2024
1 parent 64fd974 commit a070477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/solid/src/reactive/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,8 @@ export function untrack<T>(fn: Accessor<T>): T {
export type ReturnTypes<T> = T extends readonly Accessor<unknown>[]
? { [K in keyof T]: T[K] extends Accessor<infer I> ? I : never }
: T extends Accessor<infer I>
? I
: never;
? I
: never;

// transforms a tuple to a tuple of accessors in a way that allows generics to be inferred
export type AccessorArray<T> = [...Extract<{ [K in keyof T]: Accessor<T[K]> }, readonly unknown[]>];
Expand Down

0 comments on commit a070477

Please sign in to comment.