Options
Modules
  • Command
  • Localization
  • Logger
All
  • Public
  • Public/Protected
  • All
Menu

Cache for argument type resolvers

Hierarchy

  • ResolverCache

Index

Methods

Methods

Static add

  • add(resolverClass: () => Resolver): void
  • Creates a new instance of the given Resolver child class and sets it in the resolvers collection for each of the types specified in the resolver class itself

    Parameters

    • resolverClass: () => Resolver
        • (): Resolver
        • Returns Resolver

    Returns void

Static get

  • get<T>(type: string): undefined | T
  • Returns the Resolver for the given type name. Can be given any of the type names specified in the Resolver's super() call

    Type parameters

    • T: Resolver<T>

    Parameters

    • type: string

    Returns undefined | T

Static has

  • has(type: string): boolean
  • Returns whether or not the cache has a Resolver for the given type name. Can be given any of the type names specified in the Resolver's super() call

    Parameters

    • type: string

    Returns boolean

Generated using TypeDoc