Skip to content

Commit

Permalink
fix(types): overload store get method for listing enumerables
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed Jun 17, 2021
1 parent 883c720 commit 67fd39c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/index.d.ts
Expand Up @@ -151,6 +151,8 @@ declare namespace hybrids {
const connect = "__store__connect__";

function get<M>(Model: Model<M>, id?: ModelIdentifier): M;
function get<M>(Model: [Model<M>], id?: ModelIdentifier): M[];

function set<M>(
model: Model<M> | M,
values: ModelValues<M> | null,
Expand Down

0 comments on commit 67fd39c

Please sign in to comment.