Skip to content

Commit 19bc4af

Browse files
committed
fix: correct filterBlocks type signature
1 parent 6901b15 commit 19bc4af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/stores/modals/search/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ export interface SearchModalState {
8282
/**
8383
* Initialize search data. Called once on app load.
8484
*/
85-
initializeData: (filterBlocks: (blocks: unknown[]) => unknown[]) => void
85+
initializeData: <T extends { type: string }>(filterBlocks: (blocks: T[]) => T[]) => void
8686
}

0 commit comments

Comments
 (0)