From fd853c7319c023d5c4a883bd7066ef3b0afe6d3c Mon Sep 17 00:00:00 2001 From: baldo Date: Wed, 24 Aug 2022 23:48:03 +0200 Subject: [PATCH] Show node on map in confirmation before deleting it. --- server/shared/types/index.ts | 4 ++++ 1 file changed, 4 insertions(+) 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);