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