• Creates a new Ether.

    Type Parameters

    • T

    • const D extends Record<string, symbol> = Record<string, never>

    Parameters

    • selfSymbol: EtherSymbol<T>

      The unique symbol corresponding to the return type T.

    • handler: ((deps) => T)

      The function which creates an object of type T from the dependencies object.

        • (deps): T
        • Parameters

          Returns T

    • depSymbols: D = ...

      The declaration of symbols by key, for handler which requires dependencies.

    Returns Ether<D, T>

    A new Ether having parameters as fields.

Generated using TypeDoc