Skip to content

Commit 63af093

Browse files
committed
workflow
1 parent 0ef7ced commit 63af093

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Backend Function Refactoring Plan
2+
3+
## Objective
4+
5+
Refactor all backend functions to use single object parameter pattern.
6+
7+
## Workflow (Repeat until complete)
8+
9+
1. **Discover** - Run code searches to find functions:
10+
11+
```
12+
code_search: ^(export )?(async )?function \w+\(
13+
code_search: ^export const \w+ = (async )?\(
14+
```
15+
16+
2. **Pick** - Select next unmigrated function (skip external callbacks like `.map()`, `.then()`, middleware)
17+
18+
3. **Migrate** - Convert function signature and all call sites to use object parameter
19+
20+
4. **Typecheck** - Run `bun run typecheck`
21+
22+
- If errors: fix and repeat step 4
23+
- If success: proceed
24+
25+
5. **Commit** - `git commit -m "refactor: convert [functionName] to use object parameter"`
26+
27+
6. **Repeat** - Go back to step 1
28+
29+
## Rules
30+
31+
- Skip external library callbacks (array methods, promise chains, middleware, event handlers)
32+
- Use `params` or descriptive names (`options`, `config`)
33+
- Define interfaces when functions are called from multiple places

0 commit comments

Comments
 (0)