Function parseObjectStateMapping

  • Resolves an object-state-mapping token to a concrete Durable Object instance id.

    The special tokens map to the caller's identity (signedIp, clientId, ip); any other token is treated as a route-parameter name, falling back to the literal token when that param is absent.

    Parameters

    • objectStateMapping: string

      The mapping token configured for the object.

    • Optional matches: MatchResult<any>

      Current route match, used to resolve route-parameter tokens.

    Returns string

    The derived instance id.

Generated using TypeDoc