| 11 | } |
| 12 | |
| 13 | interface SearchOpts { |
| 14 | /** |
| 15 | * Debouncing makes queries slower, but prevents sending many request. Number |
| 16 | * respresents milliseconds. |
| 17 | */ |
| 18 | debounce?: number; |
| 19 | /** Fetch full resources instead of subjects */ |
| 20 | include?: boolean; |
| 21 | /** Max of how many results to return */ |
| 22 | limit?: number; |
| 23 | } |
| 24 | |
| 25 | /** Pass a query to search the current server */ |
| 26 | export function useServerSearch( |
nothing calls this directly
no outgoing calls
no test coverage detected