mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-04 13:12:10 +00:00
Update remaining @comfyorg/litegraph references
This commit is contained in:
@@ -151,10 +151,10 @@ widget.onPointerDown = function (pointer, node, canvas) {
|
||||
|
||||
### TypeScript & JSDoc
|
||||
|
||||
In-IDE typing is available for use in at least mainstream editors. It can be added to JS projects using the @comfyorg/litegraph npm package.
|
||||
In-IDE typing is available for use in at least mainstream editors. TypeScript definitions are available in the litegraph library.
|
||||
|
||||
```ts
|
||||
/** @import { IWidget } from './path/to/@comfyorg/litegraph/litegraph.d.ts' */
|
||||
/** @import { IWidget } from './path/to/litegraph/litegraph.d.ts' */
|
||||
/** @type IWidget */
|
||||
const widget = node.widgets[0]
|
||||
widget.onPointerDown = function (pointer, node, canvas) {}
|
||||
|
||||
Reference in New Issue
Block a user