Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(store): update ActionDef new to return any #2149

Merged
merged 7 commits into from
Mar 30, 2024
Prev Previous commit
Next Next commit
fix: reinstate Action type parameter
markwhitfeld committed Mar 30, 2024

Verified

This commit was signed with the committer’s verified signature.
jalaziz Jameel Al-Aziz
commit 7fc9b50ac6edabbdd049954c8ddc94833db96890
6 changes: 3 additions & 3 deletions packages/store/src/actions/symbols.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export interface ActionDef<TArgs extends any[]> {
export interface ActionDef<TArgs extends any[] = any[], TReturn = any> {
type: string;

new (...args: TArgs): any;
new(...args: TArgs): TReturn;
}

export type ActionType = ActionDef<any[]> | { type: string };
export type ActionType = ActionDef | { type: string };