diff --git a/server/shared/types/index.ts b/server/shared/types/index.ts index 016fee4..5fb3c06 100644 --- a/server/shared/types/index.ts +++ b/server/shared/types/index.ts @@ -461,6 +461,10 @@ export const isHostname = toIsNewtype(isString, "" as Hostname); export type Nickname = string & { readonly __tag: unique symbol }; export const isNickname = toIsNewtype(isString, "" as Nickname); +/** + * String representing geo coordinates. Latitude and longitude are delimited by one whitespace. + * E.g.: "53.565278 10.001389" + */ export type Coordinates = string & { readonly __tag: unique symbol }; export const isCoordinates = toIsNewtype(isString, "" as Coordinates);