Merge branch 'main' into new-admin

This commit is contained in:
baldo 2022-09-14 16:35:03 +02:00
commit 50dc4733e0
17 changed files with 32 additions and 19 deletions
server/shared/types

View file

@ -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;