Skip to content

Commit

Permalink
remove type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
kimizuy committed Aug 1, 2024
1 parent de67ee5 commit 20f57fb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/ipc-main-listeners/get-names.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { users } from "../schema";
import { db } from "../utils/db";
import { type IpcMainListener } from ".";
import { users } from "@/schema";
import { db } from "@/utils/db";

export const getNames: IpcMainListener = (): (string | null)[] => {
db.insert(users)
Expand Down
4 changes: 2 additions & 2 deletions src/ipc-main-listeners/save-name.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { users } from "../schema";
import { db } from "../utils/db";
import { type IpcMainListener } from ".";
import { users } from "@/schema";
import { db } from "@/utils/db";

export const saveName: IpcMainListener = (_: unknown, name: string): void => {
void db.insert(users).values({ name }).run();
Expand Down
4 changes: 0 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

// Module Resolution
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"resolveJsonModule": true,
"esModuleInterop": true,

Expand Down
4 changes: 0 additions & 4 deletions vite.main.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import path from "path";
import type { ConfigEnv, UserConfig } from "vite";
import { defineConfig, mergeConfig } from "vite";
import native from "vite-plugin-native";
Expand Down Expand Up @@ -35,9 +34,6 @@ export default defineConfig((env) => {
resolve: {
// Load the Node.js entry.
mainFields: ["module", "jsnext:main", "jsnext"],
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
};

Expand Down

0 comments on commit 20f57fb

Please sign in to comment.