chore: fix typescript error

This commit is contained in:
leejooy96 committed 2025-04-26 21:32:12 +09:00
1 parent 9694d40a4a
commit eb5a3b04fa
7 files changed
+13 -11

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import {
} from 'electron' } from 'electron'
import Constants, { TrayOptions } from './utils/Constants' import Constants, { TrayOptions } from './utils/Constants'
import IPCs from './IPCs' import IPCs from './IPCs'
import { createTray, hideWindow, showWindow } from './tray.ts' import { createTray, hideWindow, showWindow } from './tray'
const options = { const options = {
width: Constants.IS_DEV_ENV ? 1500 : 1200, width: Constants.IS_DEV_ENV ? 1500 : 1200,
+2 -2
View File
@@ -1,6 +1,6 @@
import { app, screen, Menu, Tray, BrowserWindow } from 'electron' import { app, screen, Menu, Tray, BrowserWindow } from 'electron'
import Constants from './utils/Constants.ts' import Constants from './utils/Constants'
import { debounce } from './utils/Util.ts' import { debounce } from './utils/Util'
let tray let tray
let trayOptions let trayOptions
+1 -1
View File
@@ -6,5 +6,5 @@
<body> <body>
<div id="app"></div> <div id="app"></div>
</body> </body>
<script type="module" src="./main.ts"></script> <script type="module" src="./main"></script>
</html> </html>
+1
View File
@@ -64,6 +64,7 @@ export const test = base.test.extend({
page: async ({}, use) => { page: async ({}, use) => {
await use(page) await use(page)
}, },
// @ts-ignore
util: async ({ page }, use, testInfo) => { util: async ({ page }, use, testInfo) => {
await use(new TestUtil(page, testInfo, __testScreenshotPath)) await use(new TestUtil(page, testInfo, __testScreenshotPath))
} }
+3 -1
View File
@@ -1,8 +1,9 @@
import { test, expect, beforeAll, afterAll } from '../fixtures.mts' import { test, expect, beforeAll, afterAll } from '../fixtures.mjs'
test.beforeAll(beforeAll) test.beforeAll(beforeAll)
test.afterAll(afterAll) test.afterAll(afterAll)
// @ts-ignore
test('Document element check', async ({ page, util }) => { test('Document element check', async ({ page, util }) => {
try { try {
await expect( await expect(
@@ -20,6 +21,7 @@ test('Document element check', async ({ page, util }) => {
} }
}) })
// @ts-ignore
test('Counter button click check', async ({ page, util }) => { test('Counter button click check', async ({ page, util }) => {
try { try {
await page.getByTestId('btn-counter').click({ clickCount: 10, delay: 50 }) await page.getByTestId('btn-counter').click({ clickCount: 10, delay: 50 })
+2 -2
View File
@@ -3,8 +3,8 @@
"baseUrl": "./", "baseUrl": "./",
"outDir": "./dist", "outDir": "./dist",
"target": "esnext", "target": "esnext",
"module": "nodenext", "module": "Preserve",
"moduleResolution": "nodenext", "moduleDetection": "force",
"jsx": "preserve", "jsx": "preserve",
"noImplicitAny": false, "noImplicitAny": false,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
+3 -4
View File
@@ -1,14 +1,13 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "Preserve",
"moduleDetection": "force",
"jsx": "preserve", "jsx": "preserve",
"moduleResolution": "nodenext",
"composite": true, "composite": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"esModuleInterop": true, "esModuleInterop": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true
"allowImportingTsExtensions": true
}, },
"include": [ "include": [
"src/main", "src/main",