Skip to content

Commit f233e55

Browse files
committed
fix(rename): type onSave as void | Promise<unknown> so fire-and-forget call sites pass the build
table-grid's optimistic column rename is a block-bodied callback returning void, which is only assignable when the declared return type is literally void — 'undefined | Promise<unknown>' rejected it and failed the Next.js type check in CI.
1 parent 1f8aab6 commit f233e55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/hooks/use-inline-rename.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface UseInlineRenameProps {
99
* `mutateAsync(...)`) — NOT a fire-and-forget `mutate(...)` — so `isSaving`
1010
* spans the in-flight request and a rejection can revive the edit session.
1111
*/
12-
onSave: (id: string, newName: string) => undefined | Promise<unknown>
12+
onSave: (id: string, newName: string) => void | Promise<unknown>
1313
}
1414

1515
/**

0 commit comments

Comments
 (0)