This is an automated email from the ASF dual-hosted git repository.

fanjia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-web.git


The following commit(s) were added to refs/heads/main by this push:
     new ab477d50 fix ts problems with mvn clean package (#162)
ab477d50 is described below

commit ab477d5082dc0a017d44a388a8f75f0749e1115d
Author: somnmos <[email protected]>
AuthorDate: Wed Jun 12 11:30:01 2024 +0800

    fix ts problems with mvn clean package (#162)
---
 seatunnel-ui/src/common/table.ts                                      | 4 ++--
 .../src/views/task/synchronization-definition/dag/canvas/dag-shape.ts | 2 +-
 .../views/task/synchronization-instance/detail/task-definition.tsx    | 2 +-
 seatunnel-ui/tsconfig.json                                            | 1 +
 4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/seatunnel-ui/src/common/table.ts b/seatunnel-ui/src/common/table.ts
index b3e5e63d..2f651ff8 100644
--- a/seatunnel-ui/src/common/table.ts
+++ b/seatunnel-ui/src/common/table.ts
@@ -18,7 +18,7 @@
 import { useSettingStore } from '@/store/setting'
 
 const getTableColumn = (data: Array<{ key: string; title: string }>) => {
-  const tableColumn = []
+  const tableColumn : any[] = []
   const settingStore = useSettingStore()
 
   settingStore.getSequenceColumn &&
@@ -30,7 +30,7 @@ const getTableColumn = (data: Array<{ key: string; title: 
string }>) => {
 
   settingStore.getDataUniqueValue &&
     tableColumn.push(
-      ...data.map((i) => {
+      ...data.map((i: {key: any, title:any}): {key: any, title:any} => {
         return {
           title: i.title,
           key: i.key
diff --git 
a/seatunnel-ui/src/views/task/synchronization-definition/dag/canvas/dag-shape.ts
 
b/seatunnel-ui/src/views/task/synchronization-definition/dag/canvas/dag-shape.ts
index 6cb5ad95..18ebb9cf 100644
--- 
a/seatunnel-ui/src/views/task/synchronization-definition/dag/canvas/dag-shape.ts
+++ 
b/seatunnel-ui/src/views/task/synchronization-definition/dag/canvas/dag-shape.ts
@@ -93,7 +93,7 @@ export function formatLayout(
   cols?: number,
   rows?: number
 ) {
-  let layoutFunc = null
+  let layoutFunc : any = null
   const layoutConfig: any = {
     nodesep: 50,
     padding: 50,
diff --git 
a/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.tsx
 
b/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.tsx
index 34552b5b..7a344174 100644
--- 
a/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.tsx
+++ 
b/seatunnel-ui/src/views/task/synchronization-instance/detail/task-definition.tsx
@@ -68,7 +68,7 @@ const TaskDefinition = defineComponent({
 
     const formatData = () => {
       const obj = jobConfig.value.env
-      const arr = []
+      const arr : any = []
       for (const i in obj) {
         arr.push({ label: String(i), value: obj[i] })
       }
diff --git a/seatunnel-ui/tsconfig.json b/seatunnel-ui/tsconfig.json
index 8806a48d..815e2c0d 100644
--- a/seatunnel-ui/tsconfig.json
+++ b/seatunnel-ui/tsconfig.json
@@ -4,6 +4,7 @@
     "module": "esnext",
     "moduleResolution": "node",
     "strict": true,
+    "noImplicitAny": false,
     "jsx": "preserve",
     "sourceMap": true,
     "resolveJsonModule": true,

Reply via email to