From a42b6e7553ecd14d5600c40319f55ac21d812f92 Mon Sep 17 00:00:00 2001 From: Konrad Koch Date: Sun, 3 Sep 2017 16:16:16 +0200 Subject: [PATCH] camelizeIf and underscoredIf wrong in SequelizeLoDash The type definition defines that `underscoredIf` and `camelizeIf` is accessable via `Utils._.underscoredIf` The correct path would be `Utils.underscoredIf` for a sequelize version '>=3.0.0' --- types/sequelize/v3/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/sequelize/v3/index.d.ts b/types/sequelize/v3/index.d.ts index bb9511c5ed..65db1b3822 100644 --- a/types/sequelize/v3/index.d.ts +++ b/types/sequelize/v3/index.d.ts @@ -6158,8 +6158,6 @@ declare namespace sequelize { interface SequelizeLoDash extends _.LoDashStatic { - camelizeIf(str: string, condition: boolean): string; - underscoredIf(str: string, condition: boolean): string; /** * * Returns an array with some falsy values removed. The values null, "", undefined and NaN are considered * falsey. @@ -6173,6 +6171,9 @@ declare namespace sequelize { interface Utils { + camelizeIf(str: string, condition: boolean): string; + underscoredIf(str: string, condition: boolean): string; + _: SequelizeLoDash; /**