From 79c850405ed37379f03a802789c187ab27fa0d19 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Mon, 15 Apr 2019 22:17:09 +0900
Subject: [PATCH] refs #850 Add define types for timeFormat in constants
---
src/constants/timeFormat/index.d.ts | 13 +++++++++++++
.../{timeFormat.js => timeFormat/index.js} | 0
2 files changed, 13 insertions(+)
create mode 100644 src/constants/timeFormat/index.d.ts
rename src/constants/{timeFormat.js => timeFormat/index.js} (100%)
diff --git a/src/constants/timeFormat/index.d.ts b/src/constants/timeFormat/index.d.ts
new file mode 100644
index 00000000..a7080438
--- /dev/null
+++ b/src/constants/timeFormat/index.d.ts
@@ -0,0 +1,13 @@
+export type TimeFormatType = {
+ name: string,
+ value: number
+}
+
+export type TimeFormatList = {
+ Absolute: TimeFormatType,
+ Relative: TimeFormatType
+}
+
+declare var t: TimeFormatList
+
+export default t
diff --git a/src/constants/timeFormat.js b/src/constants/timeFormat/index.js
similarity index 100%
rename from src/constants/timeFormat.js
rename to src/constants/timeFormat/index.js