Documentation

This commit is contained in:
squidfunk 2020-03-27 17:16:03 +01:00
parent 64caf62835
commit 1cd1a056f8
3 changed files with 9 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -149,7 +149,7 @@ export function setupComponents(
*
* @param name - Component name
*
* @return Element observable
* @return Component observable
*/
export function useComponent<T extends HTMLInputElement>(
name: "search-query"

View File

@ -49,6 +49,13 @@ export interface SearchQuery {
focus: boolean /* Query focus */
}
/* ------------------------------------------------------------------------- */
/**
* Search query transform
*/
export type SearchQueryTransform = (value: string) => string
/* ----------------------------------------------------------------------------
* Helper types
* ------------------------------------------------------------------------- */