Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
best
Browse files Browse the repository at this point in the history
  • Loading branch information
big cock committed Aug 20, 2023
1 parent 87ca54a commit f60197e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

import express, { Express } from "express";
import express, { type Express } from "express";
import fileUpload from "express-fileupload";
import cors from "cors";
import bodyParser from "body-parser";
Expand Down
6 changes: 3 additions & 3 deletions src/routes/api/sharex-config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

import express from "express";
import { Router, type Response } from "express";
import fs from "fs";

interface IKeys {
Expand All @@ -22,7 +22,7 @@ interface IShareXConfig {
URL: string;
}

const router = express.Router();
const router: Router = Router();
const keysFile = "keys.json";

router.post("/", (req, res) => {
Expand Down Expand Up @@ -73,7 +73,7 @@ function generateShareXConfig(key: string): IShareXConfig {
};
}

function sendShareXConfig(res: express.Response, config: IShareXConfig): void {
function sendShareXConfig(res: Response, config: IShareXConfig): void {
const file = JSON.stringify(config, null, 2);
const fileName = "sharex-config.sxcu";

Expand Down
2 changes: 1 addition & 1 deletion src/routes/api/upload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Router, Request, Response } from "express";
import { Router, type Request, type Response } from "express";
import path from "path";
import config from "../../config";
import fs from "fs";
Expand Down

0 comments on commit f60197e

Please sign in to comment.