From 9ab34c23016423611e218b98f3ffaca9c9bca885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 15 Dec 2018 20:54:34 +0900 Subject: [PATCH] Update index.ts (#3624) --- src/chart/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart/index.ts b/src/chart/index.ts index ccfcef39a..58ab7f7f4 100644 --- a/src/chart/index.ts +++ b/src/chart/index.ts @@ -64,7 +64,7 @@ export default abstract class Chart { const keys = { span: -1, date: -1 - } as any; + } as { [key: string]: 1 | -1; }; if (grouped) keys.group = -1; this.collection.createIndex(keys, { unique: true }); }