Skip to content

Commit

Permalink
refactor: enable verbatimModuleSyntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Feb 11, 2024
1 parent 77579e7 commit 5f91ce5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { LinuxAdapter } from "./main/linux";
import { MacosAdapter } from "./main/macos";
import { setUpdater, setReporter } from "./main/utils";
import { WinAdapter } from "./main/win";
import { Dispatch } from "./reducers";
import { AppInfo } from "./reducers/app";
import { PageInfo, sessionSlice } from "./reducers/session";
import type { Dispatch } from "./reducers";
import type { AppInfo } from "./reducers/app";
import { type PageInfo, sessionSlice } from "./reducers/session";
import { spawn } from "child_process";
import {
app,
Expand Down
2 changes: 1 addition & 1 deletion src/main/adapter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppInfo } from "../reducers/app";
import type { AppInfo } from "../reducers/app";

export abstract class Adapter {
abstract readApps(): Promise<(AppInfo | undefined)[]>;
Expand Down
2 changes: 1 addition & 1 deletion src/main/linux.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppInfo } from "../reducers/app";
import type { AppInfo } from "../reducers/app";
import { Adapter } from "./adapter";
import { readdirSafe, readFileSafe } from "./utils";
import fs from "fs";
Expand Down
2 changes: 1 addition & 1 deletion src/main/win.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppInfo } from "../reducers/app";
import type { AppInfo } from "../reducers/app";
import { Adapter } from "./adapter";
import { readdirSafe } from "./utils";
import fs from "fs";
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppInfo, appSlice } from "../reducers/app";
import { type AppInfo, appSlice } from "../reducers/app";
import { sessionSlice } from "../reducers/session";
import "./app.css";
import { useDispatch, useSelector } from "./hooks";
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": true,

"strict": true,
"noUncheckedIndexedAccess": true,
Expand Down

0 comments on commit 5f91ce5

Please sign in to comment.