Skip to content

Commit

Permalink
fix(types): Add missing result undefined type to store factory when…
Browse files Browse the repository at this point in the history
… `id` option is used
  • Loading branch information
smalluban committed Mar 21, 2024
1 parent f29902f commit 91d46a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ declare module "hybrids" {
id?: keyof E | ((host: E) => ModelIdentifier);
draft?: boolean;
},
): Descriptor<E, M>;
): Descriptor<E, M extends { id: any } ? M | undefined : M>;

namespace store {
const connect = "__store__connect__";
Expand Down

0 comments on commit 91d46a3

Please sign in to comment.