Skip to main content

root

Callable

  • root(domain: string, type: string, id: string, version?: string): EntityReference

  • Builds a single-component reference, domain~type:id[@version], so a producer starts a chain instead of interpolating one. Throws on a part the grammar refuses rather than splicing it in: an id carrying . or / would otherwise re-parse as a different, possibly valid, reference. Mirrors the C# TwinfinityEntityReference(domain, entityType, id) constructor; extend it with child.


    Parameters

    • domain: string
    • type: string
    • id: string
    • optionalversion: string

    Returns EntityReference