From 311fd1641b998baa3cc2342f9ad722b3cc03edff Mon Sep 17 00:00:00 2001 From: Mike North Date: Wed, 20 Dec 2017 14:35:10 -0800 Subject: [PATCH] DS.Snapshot#hasMany and #belongsTo options -> optional --- types/ember-data/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/ember-data/index.d.ts b/types/ember-data/index.d.ts index c8cfd8187e..6d83c72fd2 100644 --- a/types/ember-data/index.d.ts +++ b/types/ember-data/index.d.ts @@ -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.