Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RegistryRegisteredFactory<H>

Type parameters

  • H

Hierarchy

  • RegistryRegisteredFactory

Index

Constructors

Methods

Constructors

constructor

  • Parameters

    • modName: string | undefined
    • Rest ...path: PropertyKey[]

    Returns RegistryRegisteredFactory

Methods

get

  • get<K>(key: K): H[K]
  • get<K>(key: K, index: number): H[K] extends Array<infer T> ? T : never
  • Type parameters

    • K: keyof H

    Parameters

    • key: K

      A key of the registry H.

    Returns H[K]

    An intermediate value referencing the T stored in the given key in H.

    As much as you may wish it was, the returned value is not actually the type it claims to be. Do not use it as such.

  • Type parameters

    • K: keyof H

    Parameters

    • key: K

      A key of the registry H that maps to an array value.

    • index: number

      An index in the array.

    Returns H[K] extends Array<infer T> ? T : never

    An intermediate value referencing the T stored in the array in the given key in H.

    As much as you may wish it was, the returned value is not actually the type it claims to be. Do not use it as such.

getMethod

  • getMethod<K>(key: K): H[K]
  • Type parameters

    • K: keyof H

    Parameters

    • key: K

      The key of H which contains T.

    Returns H[K]

    An intermediate value referencing the T stored in the given key in H

registry

Generated using TypeDoc