From ff6d2d2b904d8b97b478385632f4b7841ecf2df3 Mon Sep 17 00:00:00 2001 From: Ryan Smith <0ryansmith1994@gmail.com> Date: Wed, 30 Mar 2016 18:22:39 +0100 Subject: [PATCH] Attempts to fix new errors. ``` knex/knex-tests.ts(500,16): error TS2339: Property 'name' does not exist on type 'string'. knex/knex-tests.ts(502,9): error TS2345: Argument of type '(names: string) => void' is not assignable to parameter of type '(value: any[]) => void | PromiseLike'. Types of parameters 'names' and 'value' are incompatible. Type 'string' is not assignable to type 'any[]'. ``` https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/119592117 --- knex/knex-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/knex/knex-tests.ts b/knex/knex-tests.ts index c0483c5d97..cd67a08736 100644 --- a/knex/knex-tests.ts +++ b/knex/knex-tests.ts @@ -495,8 +495,8 @@ query.then(function(x: any) { return x; }); -knex.select('name').from('users').limit(10).then(function (rows: any[]) { - return rows.map(function (row: string) { +knex.select('name').from('users').limit(10).then(function (rows: any[]): string[] { + return rows.map(function (row: any): string { return row.name; }); }).then(function(names: string) {