You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add config support to search method for branch-specific searches
- Add optional config parameter to search method with safe default
- Support branch-specific searches via config.branch
- Update JSDoc documentation for new parameter
- Maintain backward compatibility with existing API
- Follow consistent pattern with other stack methods
Copy file name to clipboardExpand all lines: src/stack/index.ts
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -113,10 +113,15 @@ class Stack {
113
113
* Gets the results of the search based on user query
114
114
* @param queries Array of key value pair of query parameters
115
115
* @param apiKey API key of the stack
116
+
* @param config Optional configuration. Only pass this if you need to query a specific branch using `{ branch: 'branch-name' }. If not provided, queries the default branch.`
0 commit comments