module const regexGUID = /^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}/ ; method param guid return export function isValidGuid ( guid ) { return regexGUID . test ( guid ) ; } export const emptyGuid = "00000000-0000-0000-0000-000000000000" ; export type Guid = string ;