Type guard to check if a string is a valid Document ID
String to validate
true if the value matches Document ID format
if (isDocumentID("A9-2024/0123")) { const id = "A9-2024/0123" as DocumentID;} Copy
if (isDocumentID("A9-2024/0123")) { const id = "A9-2024/0123" as DocumentID;}
Type guard to check if a string is a valid Document ID