[TS] Fix weak ds.offset type breaks litegraph CI (#3861)

This commit is contained in:
filtered
2025-05-13 04:34:47 +10:00
committed by GitHub
parent 7144ec54aa
commit 36bd1f74ca

View File

@@ -44,7 +44,7 @@
</template>
<script setup lang="ts">
import type { LGraphNode } from '@comfyorg/litegraph'
import type { LGraphNode, Point } from '@comfyorg/litegraph'
import { useEventListener } from '@vueuse/core'
import { computed, onMounted, ref, watch, watchEffect } from 'vue'
@@ -242,7 +242,7 @@ watch(
},
get offset() {
const [x, y] = canvas.ds.offset
return [x, y]
return [x, y] satisfies Point
}
}
} else {