mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
[ember-data] DS.Store.unloadAll() modelName argument is optional.
This commit is contained in:
Vendored
+1
-1
@@ -1132,7 +1132,7 @@ export namespace DS {
|
||||
* This method unloads all records in the store.
|
||||
* It schedules unloading to happen during the next run loop.
|
||||
*/
|
||||
unloadAll<K extends keyof ModelRegistry>(modelName: K): void;
|
||||
unloadAll<K extends keyof ModelRegistry>(modelName?: K): void;
|
||||
/**
|
||||
* DEPRECATED:
|
||||
* This method has been deprecated and is an alias for store.hasRecordForId, which should
|
||||
|
||||
@@ -205,3 +205,6 @@ declare module 'ember-data/types/registries/serializer' {
|
||||
|
||||
assertType<UserAdapter>(store.adapterFor('user'));
|
||||
assertType<UserSerializer>(store.serializerFor('user'));
|
||||
|
||||
store.unloadAll();
|
||||
store.unloadAll('user');
|
||||
|
||||
Vendored
+1
-1
@@ -1094,7 +1094,7 @@ export namespace DS {
|
||||
* This method unloads all records in the store.
|
||||
* It schedules unloading to happen during the next run loop.
|
||||
*/
|
||||
unloadAll<K extends keyof ModelRegistry>(modelName: K): void;
|
||||
unloadAll<K extends keyof ModelRegistry>(modelName?: K): void;
|
||||
/**
|
||||
* DEPRECATED:
|
||||
* This method has been deprecated and is an alias for store.hasRecordForId, which should
|
||||
|
||||
@@ -203,3 +203,6 @@ declare module 'ember-data' {
|
||||
|
||||
assertType<UserAdapter>(store.adapterFor('user'));
|
||||
assertType<UserSerializer>(store.serializerFor('user'));
|
||||
|
||||
store.unloadAll();
|
||||
store.unloadAll('user');
|
||||
|
||||
Reference in New Issue
Block a user