(callback, state)
| 159 | }; |
| 160 | |
| 161 | async function invokeCallback(callback, state) { |
| 162 | if (callback.type in callbacks) { |
| 163 | // @ts-ignore |
| 164 | await callbacks[callback.type](callback, state); |
| 165 | } else { |
| 166 | console.warn( |
| 167 | "%c[🐍 pysssss]", |
| 168 | "color: limegreen", |
| 169 | `[binding ${state.$node.comfyClass}.${state.$this.name}]`, |
| 170 | "unsupported binding callback type:", |
| 171 | callback.type |
| 172 | ); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | app.registerExtension({ |
| 177 | name: "pysssss.Binding", |
no outgoing calls
no test coverage detected