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