Skip to content

Commit

Permalink
Add back array type
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Oct 28, 2024
1 parent f6aa180 commit 06d3862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class StateStore<T extends Record<string, unknown>> {
};
};

public subscribeWithSelector = <O extends Readonly<Record<string, unknown>>>(
public subscribeWithSelector = <O extends Readonly<Record<string, unknown>> | Readonly<unknown[]>>(
selector: (nextValue: T) => O,
handler: Handler<O>,
) => {
Expand Down

0 comments on commit 06d3862

Please sign in to comment.