From da9afa6cdbfbe3569358dac62a83f85fac14db64 Mon Sep 17 00:00:00 2001 From: guillaumep Date: Tue, 19 Sep 2017 14:53:38 -0400 Subject: [PATCH] More verbose definition for pathOr --- types/ramda/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 81ce8cde36..ab132df060 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -1227,9 +1227,9 @@ declare namespace R { * If the given, non-null object has a value at the given path, returns the value at that path. * Otherwise returns the provided default value. */ - pathOr(d: T, p: Path, obj: any): any; - pathOr(d: T, p: Path): (obj: any) => any; - pathOr(d: T): CurriedFunction2; + pathOr(defaultValue: T, path: Path, obj: any): any; + pathOr(defaultValue: T, path: Path): (obj: any) => any; + pathOr(defaultValue: T): CurriedFunction2; /** * Returns true if the specified object property at given path satisfies the given predicate; false otherwise.