Endo API documentation
    Preparing search index...
    • Mark an object to be exposed for remote interaction and give it a suggestive interface name for debugging.

      All properties of the object have to be methods, not data.

      The object must not be hardened before it is marked. It will be hardened after marking.

      For far objects (as opposed to far functions), also adds __getMethodNames__ method that returns an array of all the method names, if there is not yet any method named __getMethodNames__.

      Type Parameters

      • T extends {}

      Parameters

      • farName: string

        This name will be prepended with Alleged: for now to form the Remotable iface argument.

      • Optionalremotable: T = undefined

        The object to be marked as remotable

      Returns T & RemotableObject<`Alleged: ${string}`> & RemotableBrand<{}, T>

      Far('Employee', { getManager })