diff --git a/test/types/store/direct-methods.ts b/test/types/store/direct-methods.ts index c880ee05..5ee13944 100644 --- a/test/types/store/direct-methods.ts +++ b/test/types/store/direct-methods.ts @@ -10,6 +10,11 @@ const EnumerableModelPromise: Promise = store.resolve(EnumerableStore); const EnumerableModel = await EnumerableModelPromise; +const EnumerableModelListPromise: Promise = store.resolve([ + EnumerableStore, +]); +const EnumerableModelList = await EnumerableModelListPromise; + store.get(SingletonStore); store.get([SingletonStore]); diff --git a/types/index.d.ts b/types/index.d.ts index 1faba964..7b2c43ea 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -280,6 +280,10 @@ export namespace store { model: Model, id?: ModelIdentifier, ): Promise; + function resolve( + model: [Model], + id?: ModelIdentifier, + ): Promise; function ref(fn: () => T): () => T;