Merge pull request #22401 from mike-north/patch-1

[@types/ember-data] Snapshot#hasMany, #belongsTo options -> optional
This commit is contained in:
Paul van Brenk
2017-12-28 13:06:02 -08:00
committed by GitHub
+2 -2
View File
@@ -947,12 +947,12 @@ declare module "ember-data" {
*/
belongsTo(
keyName: string,
options: {}
options?: {}
): Snapshot | string | null | undefined;
/**
* Returns the current value of a hasMany relationship.
*/
hasMany(keyName: string, options: {}): any[] | undefined;
hasMany(keyName: string, options?: {}): any[] | undefined;
/**
* Iterates through all the attributes of the model, calling the passed
* function on each attribute.