Merge branch 'main' into new-admin
This commit is contained in:
commit
50dc4733e0
17 changed files with 32 additions and 19 deletions
server/shared/types
|
@ -140,3 +140,15 @@ export type Domain = string & { readonly __tag: unique symbol };
|
|||
* @param arg - Value to check.
|
||||
*/
|
||||
export const isDomain = toIsNewtype(isString, "" as Domain);
|
||||
|
||||
/**
|
||||
* A search term entered by the user in the frontend.
|
||||
*/
|
||||
export type SearchTerm = string & { readonly __tag: unique symbol };
|
||||
|
||||
/**
|
||||
* Type guard for {@link Domain}.
|
||||
*
|
||||
* @param arg - Value to check.
|
||||
*/
|
||||
export const isSearchTerm = isString;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue