From 4046880565c6dd9e26f809eea619851e01d40792 Mon Sep 17 00:00:00 2001 From: Matt Gibbs Date: Fri, 25 Sep 2015 18:02:22 -0400 Subject: [PATCH] More explicit typing for test case examples. --- chartist/chartist-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chartist/chartist-tests.ts b/chartist/chartist-tests.ts index b069aedde7..0a5072c6a6 100644 --- a/chartist/chartist-tests.ts +++ b/chartist/chartist-tests.ts @@ -135,8 +135,8 @@ new Chartist.Bar('.ct-chart', { // Default mobile configuration stackBars: true, axisX: { - labelInterpolationFnc: function(value) { - return value.split(/\s+/).map(function(word) { + labelInterpolationFnc: function(value: string) { + return value.split(/\s+/).map(function(word: string) { return word[0]; }).join(''); }