From b98e0c3d537b803b8ec1ee5a8d9a2bc56fe35a7e Mon Sep 17 00:00:00 2001 From: Raccoon Date: Sat, 12 Jun 2021 06:59:58 +0800 Subject: [PATCH] ts: lib/metrics.js Signed-off-by: Raccoon --- lib/{metrics.js => metrics.ts} | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename lib/{metrics.js => metrics.ts} (74%) diff --git a/lib/metrics.js b/lib/metrics.ts similarity index 74% rename from lib/metrics.js rename to lib/metrics.ts index 789cc278..e3e03928 100644 --- a/lib/metrics.js +++ b/lib/metrics.ts @@ -1,8 +1,5 @@ -'use strict' - -const { Router } = require('express') - -const { wrap } = require('./utils') +import {Router} from "express"; +import {wrap} from "./utils"; // load controller const statusController = require('./status')