Skip to content

Commit 36bd1f7

Browse files
authored
[TS] Fix weak ds.offset type breaks litegraph CI (#3861)
1 parent 7144ec5 commit 36bd1f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/graph/GraphCanvas.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</template>
4545

4646
<script setup lang="ts">
47-
import type { LGraphNode } from '@comfyorg/litegraph'
47+
import type { LGraphNode, Point } from '@comfyorg/litegraph'
4848
import { useEventListener } from '@vueuse/core'
4949
import { computed, onMounted, ref, watch, watchEffect } from 'vue'
5050
@@ -242,7 +242,7 @@ watch(
242242
},
243243
get offset() {
244244
const [x, y] = canvas.ds.offset
245-
return [x, y]
245+
return [x, y] satisfies Point
246246
}
247247
}
248248
} else {

0 commit comments

Comments
 (0)