• Assert that value is a valid Foundry document id and brand it as DocumentId.

    Parameters

    • value: string

      The string to validate and brand.

    Returns DocumentId

    The same string branded as a DocumentId.

    TypeError if value is not a 16-character alphanumeric id.