Skip to content

Commit e23547d

Browse files
authored
[TS] Remove expect-error (type fix) (#4235)
1 parent f0f40bc commit e23547d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/providers/algoliaSearchProvider.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ const toRegistryPublisher = (
8080
* Convert from node pack in Algolia format to Comfy Registry format
8181
*/
8282
const toRegistryPack = memoize(
83-
(algoliaNode: AlgoliaNodePack): RegistryNodePack => {
83+
(
84+
algoliaNode: AlgoliaNodePack
85+
): RegistryNodePack & { comfy_nodes: string[] } => {
8486
return {
8587
id: algoliaNode.id ?? algoliaNode.objectID,
8688
name: algoliaNode.name,
@@ -103,7 +105,6 @@ const toRegistryPack = memoize(
103105
algoliaNode.supported_comfyui_frontend_version,
104106
supported_accelerators: algoliaNode.supported_accelerators,
105107
banner_url: algoliaNode.banner_url,
106-
// @ts-expect-error comfy_nodes also not in node info
107108
comfy_nodes: algoliaNode.comfy_nodes
108109
}
109110
},

0 commit comments

Comments
 (0)