Fix ComfyExtension types (#778)

This commit is contained in:
Chenlei Hu
2024-09-11 10:43:01 +09:00
committed by GitHub
parent 06a05cb283
commit 8ce7b515a3
6 changed files with 29 additions and 23 deletions

View File

@@ -2871,7 +2871,7 @@ export class ComfyApp {
* Registers a Comfy web extension with the app
* @param {ComfyExtension} extension
*/
registerExtension(extension) {
registerExtension(extension: ComfyExtension) {
if (!extension.name) {
throw new Error("Extensions must have a 'name' property.")
}