From 48b9cd0b741eb971bf93e06a947713f40eb1e57e Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Wed, 12 Jun 2019 23:28:59 +0200 Subject: [PATCH] Added generic type to assignLength method --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 2784756..ce613b1 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -87,6 +87,6 @@ export function generateStringFile(lang: { [index: string]: string }): Buffer { * @param {Array>} source - the main sources of properties */ -export function assignLength(length: number, ...sources: Array<{ [key: string]: any }>): Array<{ [key: string]: any }> { +export function assignLength(length: number, ...sources: Array<{ [key: string]: any }>): { [key: string]: any } & T { return Object.assign({ length }, ...sources); }