Hierarchy

  • ClientConfigBuilder

Implemented by

Properties

Methods

  • Add a partial BuilderConfig This is equivalent to calling each of the plural add functions: addEnvs, setWrappers, etc.

    Parameters

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add a default configuration bundle

    Parameters

    Returns ClientConfigBuilder

    Promise (mutated self)

  • Add the default configuration bundle

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add an Env. If an Env is already associated with the uri, it is modified.

    Parameters

    • uri: string
    • env: Record<string, unknown>

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add one or more Envs This is equivalent to calling addEnv for each Env

    Parameters

    • uriEnvs: Record<string, Record<string, unknown>>

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Register an implementation of a single interface

    Parameters

    • interfaceUri: string
    • implementationUri: string

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Register one or more implementation of a single interface

    Parameters

    • interfaceUri: string
    • implementationUris: string[]

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add a URI Resolver, capable of resolving a URI to a wrapper

    Parameters

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

    Remarks

    A UriResolverLike can be any one of: IUriResolver | IUriRedirect | IUriPackage | IUriWrapper | UriResolverLike[];

  • Add one or more URI Resolvers, capable of resolving URIs to wrappers

    Parameters

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

    Remarks

    A UriResolverLike can be any one of: IUriResolver | IUriRedirect | IUriPackage | IUriWrapper | UriResolverLike[];

  • Build a sanitized core client configuration that can be passed to the PolywrapClient or PolywrapCoreClient constructors

    Parameters

    • Optional options: BuildOptions

      Use a custom wrapper cache or resolver

    Returns CoreClientConfig

    CoreClientConfig that results from applying all the steps in the builder pipeline

  • Remove an Env

    Parameters

    • uri: string

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Remove an implementation of a single interface

    Parameters

    • interfaceUri: string
    • implementationUri: string

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Remove an embedded wrap package

    Parameters

    • uri: string

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Remove a URI redirect

    Parameters

    • from: string

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Remove an embedded wrapper

    Parameters

    • uri: string

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add an Env. If an Env is already associated with the uri, it is replaced.

    Parameters

    • uri: string
    • env: Record<string, unknown>

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add an embedded wrap package

    Parameters

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add one or more embedded wrap packages This is equivalent to calling setPackage for each package

    Parameters

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add a redirect from one URI to another

    Parameters

    • from: string
    • to: string

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add an array of URI redirects

    Parameters

    • redirects: Record<string, string>

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add an embedded wrapper

    Parameters

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

  • Add one or more embedded wrappers. This is equivalent to calling setWrapper for each wrapper.

    Parameters

    • uriWrappers: Record<string, Wrapper>

    Returns ClientConfigBuilder

    ClientConfigBuilder (mutated self)

Generated using TypeDoc