Add ts-strict-ignore plugin (#1235)

* Add ts-strict-ignore plugin

* nit

* Add to typecheck script
This commit is contained in:
Chenlei Hu
2024-10-12 11:56:49 -04:00
committed by GitHub
parent c23d95f8f9
commit 5611e90fda
82 changed files with 751 additions and 2 deletions

663
package-lock.json generated
View File

@@ -61,6 +61,7 @@
"tsx": "^4.15.6", "tsx": "^4.15.6",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"typescript-eslint": "^8.0.0", "typescript-eslint": "^8.0.0",
"typescript-strict-plugin": "^2.4.4",
"unplugin-icons": "^0.19.3", "unplugin-icons": "^0.19.3",
"unplugin-vue-components": "^0.27.4", "unplugin-vue-components": "^0.27.4",
"vite": "^5.4.6", "vite": "^5.4.6",
@@ -5097,6 +5098,27 @@
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true "dev": true
}, },
"node_modules/base64-js": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT"
},
"node_modules/binary-extensions": { "node_modules/binary-extensions": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
@@ -5115,6 +5137,33 @@
"integrity": "sha512-PJvH288AWQhKs2v9zyfYdPzlPqf5bXbGMmhmUIY9x4dAUGIWgomO771oBQNwJnMQSnUIXhKu6sgzpBRXTlvb8Q==", "integrity": "sha512-PJvH288AWQhKs2v9zyfYdPzlPqf5bXbGMmhmUIY9x4dAUGIWgomO771oBQNwJnMQSnUIXhKu6sgzpBRXTlvb8Q==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/bl": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
"integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
"dev": true,
"license": "MIT",
"dependencies": {
"buffer": "^5.5.0",
"inherits": "^2.0.4",
"readable-stream": "^3.4.0"
}
},
"node_modules/bl/node_modules/readable-stream": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
"dev": true,
"license": "MIT",
"dependencies": {
"inherits": "^2.0.3",
"string_decoder": "^1.1.1",
"util-deprecate": "^1.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/boolbase": { "node_modules/boolbase": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
@@ -5197,6 +5246,31 @@
"node-int64": "^0.4.0" "node-int64": "^0.4.0"
} }
}, },
"node_modules/buffer": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT",
"dependencies": {
"base64-js": "^1.3.1",
"ieee754": "^1.1.13"
}
},
"node_modules/buffer-from": { "node_modules/buffer-from": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
@@ -5368,6 +5442,19 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/cli-spinners": {
"version": "2.9.2",
"resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",
"integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/cli-truncate": { "node_modules/cli-truncate": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz", "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",
@@ -5477,6 +5564,16 @@
"url": "https://github.com/chalk/wrap-ansi?sponsor=1" "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
} }
}, },
"node_modules/clone": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
"integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.8"
}
},
"node_modules/co": { "node_modules/co": {
"version": "4.6.0", "version": "4.6.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
@@ -5825,6 +5922,19 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/defaults": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
"integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",
"dev": true,
"license": "MIT",
"dependencies": {
"clone": "^1.0.2"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/delayed-stream": { "node_modules/delayed-stream": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
@@ -6007,6 +6117,16 @@
"integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==", "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==",
"dev": true "dev": true
}, },
"node_modules/end-of-stream": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"dev": true,
"license": "MIT",
"dependencies": {
"once": "^1.4.0"
}
},
"node_modules/entities": { "node_modules/entities": {
"version": "4.5.0", "version": "4.5.0",
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
@@ -7103,6 +7223,27 @@
"node": ">=4" "node": ">=4"
} }
}, },
"node_modules/ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "BSD-3-Clause"
},
"node_modules/ignore": { "node_modules/ignore": {
"version": "5.3.1", "version": "5.3.1",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",
@@ -7273,6 +7414,16 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/is-interactive": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",
"integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/is-number": { "node_modules/is-number": {
"version": "7.0.0", "version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
@@ -7300,6 +7451,19 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/is-unicode-supported": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
"integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/isarray": { "node_modules/isarray": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
@@ -9553,6 +9717,99 @@
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
"node_modules/log-symbols": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
"integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
"dev": true,
"license": "MIT",
"dependencies": {
"chalk": "^4.1.0",
"is-unicode-supported": "^0.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/log-symbols/node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/log-symbols/node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/log-symbols/node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
},
"engines": {
"node": ">=7.0.0"
}
},
"node_modules/log-symbols/node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"license": "MIT"
},
"node_modules/log-symbols/node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/log-symbols/node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/log-update": { "node_modules/log-update": {
"version": "6.0.0", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/log-update/-/log-update-6.0.0.tgz", "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.0.0.tgz",
@@ -9996,6 +10253,133 @@
"node": ">= 0.8.0" "node": ">= 0.8.0"
} }
}, },
"node_modules/ora": {
"version": "5.4.1",
"resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",
"integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"bl": "^4.1.0",
"chalk": "^4.1.0",
"cli-cursor": "^3.1.0",
"cli-spinners": "^2.5.0",
"is-interactive": "^1.0.0",
"is-unicode-supported": "^0.1.0",
"log-symbols": "^4.1.0",
"strip-ansi": "^6.0.0",
"wcwidth": "^1.0.1"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/ora/node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/ora/node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/ora/node_modules/cli-cursor": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
"integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
"dev": true,
"license": "MIT",
"dependencies": {
"restore-cursor": "^3.1.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/ora/node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
},
"engines": {
"node": ">=7.0.0"
}
},
"node_modules/ora/node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"license": "MIT"
},
"node_modules/ora/node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/ora/node_modules/restore-cursor": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
"integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
"dev": true,
"license": "MIT",
"dependencies": {
"onetime": "^5.1.0",
"signal-exit": "^3.0.2"
},
"engines": {
"node": ">=8"
}
},
"node_modules/ora/node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/p-limit": { "node_modules/p-limit": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
@@ -10604,6 +10988,17 @@
"integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==",
"dev": true "dev": true
}, },
"node_modules/pump": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz",
"integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==",
"dev": true,
"license": "MIT",
"dependencies": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
}
},
"node_modules/punycode": { "node_modules/punycode": {
"version": "2.3.1", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
@@ -11839,6 +12234,264 @@
} }
} }
}, },
"node_modules/typescript-strict-plugin": {
"version": "2.4.4",
"resolved": "https://registry.npmjs.org/typescript-strict-plugin/-/typescript-strict-plugin-2.4.4.tgz",
"integrity": "sha512-OXcWHQk+pW9gqEL/Mb1eTgj/Yiqk1oHBERr9v4VInPOYN++p+cXejmQK/h/VlUPGD++FXQ8pgiqVMyEtxU4T6A==",
"dev": true,
"license": "MIT",
"dependencies": {
"chalk": "^3.0.0",
"execa": "^4.0.0",
"minimatch": "^9.0.3",
"ora": "^5.4.1",
"yargs": "^16.2.0"
},
"bin": {
"tsc-strict": "dist/cli/tsc-strict/index.js",
"update-strict-comments": "dist/cli/update-strict-comments/index.js"
}
},
"node_modules/typescript-strict-plugin/node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/typescript-strict-plugin/node_modules/brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
"dev": true,
"license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0"
}
},
"node_modules/typescript-strict-plugin/node_modules/chalk": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"dev": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/typescript-strict-plugin/node_modules/cliui": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
"dev": true,
"license": "ISC",
"dependencies": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"wrap-ansi": "^7.0.0"
}
},
"node_modules/typescript-strict-plugin/node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
},
"engines": {
"node": ">=7.0.0"
}
},
"node_modules/typescript-strict-plugin/node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"license": "MIT"
},
"node_modules/typescript-strict-plugin/node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true,
"license": "MIT"
},
"node_modules/typescript-strict-plugin/node_modules/execa": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz",
"integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==",
"dev": true,
"license": "MIT",
"dependencies": {
"cross-spawn": "^7.0.0",
"get-stream": "^5.0.0",
"human-signals": "^1.1.1",
"is-stream": "^2.0.0",
"merge-stream": "^2.0.0",
"npm-run-path": "^4.0.0",
"onetime": "^5.1.0",
"signal-exit": "^3.0.2",
"strip-final-newline": "^2.0.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sindresorhus/execa?sponsor=1"
}
},
"node_modules/typescript-strict-plugin/node_modules/get-stream": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
"integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
"dev": true,
"license": "MIT",
"dependencies": {
"pump": "^3.0.0"
},
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/typescript-strict-plugin/node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/typescript-strict-plugin/node_modules/human-signals": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
"integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==",
"dev": true,
"license": "Apache-2.0",
"engines": {
"node": ">=8.12.0"
}
},
"node_modules/typescript-strict-plugin/node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/typescript-strict-plugin/node_modules/minimatch": {
"version": "9.0.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
"dev": true,
"license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/typescript-strict-plugin/node_modules/string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"dev": true,
"license": "MIT",
"dependencies": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
"strip-ansi": "^6.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/typescript-strict-plugin/node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/typescript-strict-plugin/node_modules/wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
}
},
"node_modules/typescript-strict-plugin/node_modules/yargs": {
"version": "16.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
"dev": true,
"license": "MIT",
"dependencies": {
"cliui": "^7.0.2",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.0",
"y18n": "^5.0.5",
"yargs-parser": "^20.2.2"
},
"engines": {
"node": ">=10"
}
},
"node_modules/typescript-strict-plugin/node_modules/yargs-parser": {
"version": "20.2.9",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
"dev": true,
"license": "ISC",
"engines": {
"node": ">=10"
}
},
"node_modules/ufo": { "node_modules/ufo": {
"version": "1.5.4", "version": "1.5.4",
"resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz", "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz",
@@ -12576,6 +13229,16 @@
"makeerror": "1.0.12" "makeerror": "1.0.12"
} }
}, },
"node_modules/wcwidth": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
"integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",
"dev": true,
"license": "MIT",
"dependencies": {
"defaults": "^1.0.3"
}
},
"node_modules/webidl-conversions": { "node_modules/webidl-conversions": {
"version": "7.0.0", "version": "7.0.0",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",

View File

@@ -8,7 +8,7 @@
"build": "npm run typecheck && vite build", "build": "npm run typecheck && vite build",
"deploy": "npm run build && node scripts/deploy.js", "deploy": "npm run build && node scripts/deploy.js",
"zipdist": "node scripts/zipdist.js", "zipdist": "node scripts/zipdist.js",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit && tsc-strict",
"format": "prettier --write './**/*.{js,ts,tsx,vue}'", "format": "prettier --write './**/*.{js,ts,tsx,vue}'",
"test": "npm run build && jest", "test": "npm run build && jest",
"test:generate:examples": "npx tsx tests-ui/extractExamples", "test:generate:examples": "npx tsx tests-ui/extractExamples",
@@ -56,6 +56,7 @@
"tsx": "^4.15.6", "tsx": "^4.15.6",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"typescript-eslint": "^8.0.0", "typescript-eslint": "^8.0.0",
"typescript-strict-plugin": "^2.4.4",
"unplugin-icons": "^0.19.3", "unplugin-icons": "^0.19.3",
"unplugin-vue-components": "^0.27.4", "unplugin-vue-components": "^0.27.4",
"vite": "^5.4.6", "vite": "^5.4.6",

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { mount } from '@vue/test-utils' import { mount } from '@vue/test-utils'
import { describe, it, expect, beforeAll } from 'vitest' import { describe, it, expect, beforeAll } from 'vitest'
import EditableText from '../EditableText.vue' import EditableText from '../EditableText.vue'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { describe, it, expect, vi } from 'vitest' import { describe, it, expect, vi } from 'vitest'
import { mount } from '@vue/test-utils' import { mount } from '@vue/test-utils'
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue' import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
// Disabled because of https://github.com/Comfy-Org/ComfyUI_frontend/issues/1184 // Disabled because of https://github.com/Comfy-Org/ComfyUI_frontend/issues/1184
import { mount } from '@vue/test-utils' import { mount } from '@vue/test-utils'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { ComfyDialog, $el } from '../../scripts/ui' import { ComfyDialog, $el } from '../../scripts/ui'
import { ComfyApp } from '../../scripts/app' import { ComfyApp } from '../../scripts/app'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { useToastStore } from '@/stores/toastStore' import { useToastStore } from '@/stores/toastStore'
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { $el } from '../../scripts/ui' import { $el } from '../../scripts/ui'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { LiteGraph, LGraphCanvas } from '@comfyorg/litegraph' import { LiteGraph, LGraphCanvas } from '@comfyorg/litegraph'
import { app } from '../../scripts/app' import { app } from '../../scripts/app'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
// Allows for simple dynamic prompt replacement // Allows for simple dynamic prompt replacement

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
// Allows you to edit the attention weight by holding ctrl (or cmd) and using the up/down arrow keys // Allows you to edit the attention weight by holding ctrl (or cmd) and using the up/down arrow keys

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { api } from '../../scripts/api' import { api } from '../../scripts/api'
import { mergeIfValid } from './widgetInputs' import { mergeIfValid } from './widgetInputs'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { $el, ComfyDialog } from '../../scripts/ui' import { $el, ComfyDialog } from '../../scripts/ui'
import { DraggableList } from '../../scripts/ui/draggableList' import { DraggableList } from '../../scripts/ui/draggableList'
import { GroupNodeConfig, GroupNodeHandler } from './groupNode' import { GroupNodeConfig, GroupNodeHandler } from './groupNode'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { LGraphGroup } from '@comfyorg/litegraph' import { LGraphGroup } from '@comfyorg/litegraph'
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph' import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { LiteGraph } from '@comfyorg/litegraph' import { LiteGraph } from '@comfyorg/litegraph'
import { app } from '../../scripts/app' import { app } from '../../scripts/app'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { LiteGraph } from '@comfyorg/litegraph' import { LiteGraph } from '@comfyorg/litegraph'
const id = 'Comfy.LinkRenderMode' const id = 'Comfy.LinkRenderMode'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { ComfyDialog, $el } from '../../scripts/ui' import { ComfyDialog, $el } from '../../scripts/ui'
import { ComfyApp } from '../../scripts/app' import { ComfyApp } from '../../scripts/app'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app, type ComfyApp } from '@/scripts/app' import { app, type ComfyApp } from '@/scripts/app'
import type { ComfyExtension } from '@/types/comfy' import type { ComfyExtension } from '@/types/comfy'
import type { LGraphNode } from '@comfyorg/litegraph' import type { LGraphNode } from '@comfyorg/litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { api } from '../../scripts/api' import { api } from '../../scripts/api'
import { ComfyDialog, $el } from '../../scripts/ui' import { ComfyDialog, $el } from '../../scripts/ui'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { LiteGraph, LGraphCanvas } from '@comfyorg/litegraph' import { LiteGraph, LGraphCanvas } from '@comfyorg/litegraph'
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { ComfyWidgets } from '../../scripts/widgets' import { ComfyWidgets } from '../../scripts/widgets'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import type { IContextMenuValue } from '@comfyorg/litegraph' import type { IContextMenuValue } from '@comfyorg/litegraph'
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { mergeIfValid, getWidgetConfig, setWidgetConfig } from './widgetInputs' import { mergeIfValid, getWidgetConfig, setWidgetConfig } from './widgetInputs'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { applyTextReplacements } from '../../scripts/utils' import { applyTextReplacements } from '../../scripts/utils'
// Use widget values and dates in output filenames // Use widget values and dates in output filenames

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph' import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { ComfyWidgets } from '../../scripts/widgets' import { ComfyWidgets } from '../../scripts/widgets'
import { LiteGraph } from '@comfyorg/litegraph' import { LiteGraph } from '@comfyorg/litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import type { SettingParams } from '@/types/settingTypes' import type { SettingParams } from '@/types/settingTypes'
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { import {

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { api } from '../../scripts/api' import { api } from '../../scripts/api'
import type { IWidget } from '@comfyorg/litegraph' import type { IWidget } from '@comfyorg/litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { ComfyNodeDef } from '@/types/apiTypes' import { ComfyNodeDef } from '@/types/apiTypes'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { api } from '../../scripts/api' import { api } from '../../scripts/api'
import { useToastStore } from '@/stores/toastStore' import { useToastStore } from '@/stores/toastStore'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { ComfyWidgets, addValueControlWidgets } from '../../scripts/widgets' import { ComfyWidgets, addValueControlWidgets } from '../../scripts/widgets'
import { app } from '../../scripts/app' import { app } from '../../scripts/app'
import { applyTextReplacements } from '../../scripts/utils' import { applyTextReplacements } from '../../scripts/utils'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import App from './App.vue' import App from './App.vue'
import router from '@/router' import router from '@/router'
import { createApp } from 'vue' import { createApp } from 'vue'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { ComfyWorkflowJSON } from '@/types/comfyWorkflow' import { ComfyWorkflowJSON } from '@/types/comfyWorkflow'
import { import {
DownloadModelStatus, DownloadModelStatus,

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { ComfyLogging } from './logging' import { ComfyLogging } from './logging'
import { ComfyWidgetConstructor, ComfyWidgets, initWidgets } from './widgets' import { ComfyWidgetConstructor, ComfyWidgets, initWidgets } from './widgets'
import { ComfyUI, $el } from './ui' import { ComfyUI, $el } from './ui'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import type { ComfyApp } from './app' import type { ComfyApp } from './app'
import { api } from './api' import { api } from './api'
import { clone } from './utils' import { clone } from './utils'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app, ANIM_PREVIEW_WIDGET } from './app' import { app, ANIM_PREVIEW_WIDGET } from './app'
import { LGraphCanvas, LGraphNode, LiteGraph } from '@comfyorg/litegraph' import { LGraphCanvas, LGraphNode, LiteGraph } from '@comfyorg/litegraph'
import type { Vector4 } from '@comfyorg/litegraph' import type { Vector4 } from '@comfyorg/litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { $el, ComfyDialog } from './ui' import { $el, ComfyDialog } from './ui'
import { api } from './api' import { api } from './api'
import type { ComfyApp } from './app' import type { ComfyApp } from './app'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
export function getFromFlacBuffer(buffer: ArrayBuffer): Record<string, string> { export function getFromFlacBuffer(buffer: ArrayBuffer): Record<string, string> {
const dataView = new DataView(buffer) const dataView = new DataView(buffer)

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
export function getFromPngBuffer(buffer: ArrayBuffer) { export function getFromPngBuffer(buffer: ArrayBuffer) {
// Get the PNG data as a Uint8Array // Get the PNG data as a Uint8Array
const pngData = new Uint8Array(buffer) const pngData = new Uint8Array(buffer)

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { LiteGraph } from '@comfyorg/litegraph' import { LiteGraph } from '@comfyorg/litegraph'
import { api } from './api' import { api } from './api'
import { getFromPngFile } from './metadata/png' import { getFromPngFile } from './metadata/png'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { api } from './api' import { api } from './api'
import { ComfyDialog as _ComfyDialog } from './ui/dialog' import { ComfyDialog as _ComfyDialog } from './ui/dialog'
import { toggleSwitch } from './ui/toggleSwitch' import { toggleSwitch } from './ui/toggleSwitch'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { ComfyDialog } from '../dialog' import { ComfyDialog } from '../dialog'
import { $el } from '../../ui' import { $el } from '../../ui'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { $el } from '../../ui' import { $el } from '../../ui'
import { applyClasses, ClassList, toggleElement } from '../utils' import { applyClasses, ClassList, toggleElement } from '../utils'
import { prop } from '../../utils' import { prop } from '../../utils'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { $el } from '../../ui' import { $el } from '../../ui'
import { ComfyButton } from './button' import { ComfyButton } from './button'
import { prop } from '../../utils' import { prop } from '../../utils'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { prop } from '../../utils' import { prop } from '../../utils'
import { $el } from '../../ui' import { $el } from '../../ui'
import { applyClasses, ClassList } from '../utils' import { applyClasses, ClassList } from '../utils'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { useDialogStore } from '@/stores/dialogStore' import { useDialogStore } from '@/stores/dialogStore'
import { $el } from '../ui' import { $el } from '../ui'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
/* /*
Original implementation: Original implementation:
https://github.com/TahaSh/drag-to-reorder https://github.com/TahaSh/drag-to-reorder

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '../app' import { app } from '../app'
import { $el } from '../ui' import { $el } from '../ui'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { $el } from '../ui' import { $el } from '../ui'
import { api } from '../api' import { api } from '../api'
import { ComfyDialog } from './dialog' import { ComfyDialog } from './dialog'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { $el } from '../ui' import { $el } from '../ui'
/** /**

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { api } from '../api' import { api } from '../api'
import { $el } from '../ui' import { $el } from '../ui'
import { createSpinner } from './spinner' import { createSpinner } from './spinner'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
export type ClassList = string | string[] | Record<string, boolean> export type ClassList = string | string[] | Record<string, boolean>
export function applyClasses( export function applyClasses(

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { api } from './api' import { api } from './api'
import type { ComfyApp } from './app' import type { ComfyApp } from './app'
import { $el } from './ui' import { $el } from './ui'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { api } from './api' import { api } from './api'
import './domWidget' import './domWidget'
import type { ComfyApp } from './app' import type { ComfyApp } from './app'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import type { ComfyApp } from './app' import type { ComfyApp } from './app'
import { api } from './api' import { api } from './api'
import { ChangeTracker } from './changeTracker' import { ChangeTracker } from './changeTracker'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { ComfyNodeDefImpl } from '@/stores/nodeDefStore' import { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
import Fuse, { IFuseOptions, FuseSearchOptions } from 'fuse.js' import Fuse, { IFuseOptions, FuseSearchOptions } from 'fuse.js'
import _ from 'lodash' import _ from 'lodash'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { app } from '@/scripts/app' import { app } from '@/scripts/app'
import { api } from '@/scripts/api' import { api } from '@/scripts/api'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
// We should consider moving to https://primevue.org/dynamicdialog/ once everything is in Vue. // We should consider moving to https://primevue.org/dynamicdialog/ once everything is in Vue.
// Currently we need to bridge between legacy app code and Vue app with a Pinia store. // Currently we need to bridge between legacy app code and Vue app with a Pinia store.

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
import { api } from '../scripts/api' import { api } from '../scripts/api'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { api } from '@/scripts/api' import { api } from '@/scripts/api'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
import { computed } from 'vue' import { computed } from 'vue'
import { useSettingStore } from './settingStore' import { useSettingStore } from './settingStore'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { import {
NodeSearchService, NodeSearchService,
type SearchAuxScore type SearchAuxScore

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { api } from '@/scripts/api' import { api } from '@/scripts/api'
import type { ComfyApp } from '@/scripts/app' import type { ComfyApp } from '@/scripts/app'
import type { import type {

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
/** /**
* TODO: Migrate scripts/ui/settings.ts here * TODO: Migrate scripts/ui/settings.ts here
* *

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
import { computed, ref } from 'vue' import { computed, ref } from 'vue'
import { ComfyWorkflow } from '@/scripts/workflows' import { ComfyWorkflow } from '@/scripts/workflows'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import type { import type {
ConnectingLink, ConnectingLink,
LGraphNode, LGraphNode,

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { memoize } from 'lodash' import { memoize } from 'lodash'
type RGB = { r: number; g: number; b: number } type RGB = { r: number; g: number; b: number }

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import type { TreeNode } from 'primevue/treenode' import type { TreeNode } from 'primevue/treenode'
export function buildTree<T>( export function buildTree<T>(

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
/* /*
Script to generate test API json from the ComfyUI_examples repo. Script to generate test API json from the ComfyUI_examples repo.
Requires the repo to be cloned to the tests-ui directory or specified via the EXAMPLE_REPO_PATH env var. Requires the repo to be cloned to the tests-ui directory or specified via the EXAMPLE_REPO_PATH env var.

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
module.exports = async function () { module.exports = async function () {
global.ResizeObserver = class ResizeObserver { global.ResizeObserver = class ResizeObserver {
observe() {} observe() {}

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { ComfyNodeDef, validateComfyNodeDef } from '@/types/apiTypes' import { ComfyNodeDef, validateComfyNodeDef } from '@/types/apiTypes'
const fs = require('fs') const fs = require('fs')
const path = require('path') const path = require('path')

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { adjustColor } from '@/utils/colorUtil' import { adjustColor } from '@/utils/colorUtil'
interface ColorTestCase { interface ColorTestCase {

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { validateComfyWorkflow } from '../../src/types/comfyWorkflow' import { validateComfyWorkflow } from '../../src/types/comfyWorkflow'
import { defaultGraph } from '../../src/scripts/defaultGraph' import { defaultGraph } from '../../src/scripts/defaultGraph'
import fs from 'fs' import fs from 'fs'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { start } from '../utils' import { start } from '../utils'
import lg from '../utils/litegraph' import lg from '../utils/litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { createPinia, setActivePinia } from 'pinia' import { createPinia, setActivePinia } from 'pinia'
import { import {
start, start,

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { import {
ComfyInputsSpec, ComfyInputsSpec,
IntInputSpec, IntInputSpec,

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { NodeSearchService } from '@/services/nodeSearchService' import { NodeSearchService } from '@/services/nodeSearchService'
import { ComfyNodeDefImpl } from '@/stores/nodeDefStore' import { ComfyNodeDefImpl } from '@/stores/nodeDefStore'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { start } from '../utils' import { start } from '../utils'
import lg from '../utils/litegraph' import lg from '../utils/litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { import {
start, start,
makeNodeDef, makeNodeDef,

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import type { LiteGraph, LGraphCanvas } from '@comfyorg/litegraph' import type { LiteGraph, LGraphCanvas } from '@comfyorg/litegraph'
/** /**

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { APIConfig, mockApi, mockSettingStore, mockNodeDefStore } from './setup' import { APIConfig, mockApi, mockSettingStore, mockNodeDefStore } from './setup'
import { Ez, EzGraph, EzNameSpace } from './ezgraph' import { Ez, EzGraph, EzNameSpace } from './ezgraph'
import lg from './litegraph' import lg from './litegraph'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import fs from 'fs' import fs from 'fs'
import path from 'path' import path from 'path'
import { nop } from '../utils/nopProxy' import { nop } from '../utils/nopProxy'

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
export const nop = new Proxy(function () {}, { export const nop = new Proxy(function () {}, {
get: () => nop, get: () => nop,
set: () => true, set: () => true,

View File

@@ -1,3 +1,4 @@
// @ts-strict-ignore
import type { ComfySettingsDialog } from '@/scripts/ui/settings' import type { ComfySettingsDialog } from '@/scripts/ui/settings'
import type { ComfyApp } from '@/scripts/app' import type { ComfyApp } from '@/scripts/app'
import '../../src/scripts/api' import '../../src/scripts/api'

View File

@@ -27,7 +27,13 @@
}, },
"typeRoots": ["src/types", "node_modules/@types"], "typeRoots": ["src/types", "node_modules/@types"],
"outDir": "./dist", "outDir": "./dist",
"rootDir": "./" "rootDir": "./",
"plugins": [
{
"name": "typescript-strict-plugin"
}
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",