File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
- export interface ISearchOption {
1
+ export interface TaskSearchOption {
2
2
[ key : string ] : string ;
3
3
}
Original file line number Diff line number Diff line change 1
1
import { TaskSearchOption } from '@/interfaces/searchOptions.type' ;
2
2
import { extractQueryParams } from './taskQueryParams' ;
3
+ /**
4
+ * Converts a string of query parameters into an array of TaskSearchOption objects.
5
+ * Each TaskSearchOption object represents a query parameter extracted from the input string.
6
+ * @param userString - The input string containing query parameters.
7
+ * @returns An array of TaskSearchOption objects representing the extracted query parameters.
8
+ */
3
9
export default function convertStringToOptions (
4
10
userString : string
5
11
) : Array < TaskSearchOption > {
You can’t perform that action at this time.
0 commit comments