Defines entity capable of resolving a wrap URI

Type Parameters

  • TError

Hierarchy

  • RequestSynchronizerResolver

Implements

Constructors

  • Construct a RequestSynchronizerResolver

    Type Parameters

    • TError

    Parameters

    • resolverToSynchronize: IUriResolver<TError>

      the inner resolve whose resolution will be synchronized

    • Optional options: {
          shouldIgnoreCache?: ((error) => boolean);
      }

      the optional options containing the shouldIgnoreCache error handler

      • Optional shouldIgnoreCache?: ((error) => boolean)
          • (error): boolean
          • Parameters

            • error: undefined | TError

            Returns boolean

    Returns RequestSynchronizerResolver<TError>

Properties

options?: {
    shouldIgnoreCache?: ((error) => boolean);
}

the optional options containing the shouldIgnoreCache error handler

Type declaration

  • Optional shouldIgnoreCache?: ((error) => boolean)
      • (error): boolean
      • Parameters

        • error: undefined | TError

        Returns boolean

requestCache: Map<string, Promise<Result<UriPackageOrWrapper, TError>>> = ...
resolverToSynchronize: IUriResolver<TError>

the inner resolve whose resolution will be synchronized

Methods

  • Create a RequestSynchronizerResolver from a static-resolver-like object

    Type Parameters

    • TResolverError = unknown

    Parameters

    • resolver: UriResolverLike

      a resolver-like object whose resolution will be synchronized

    • Optional options: {
          shouldIgnoreCache?: ((error) => boolean);
      }

      the optional options containing the shouldIgnoreCache error handler

      • Optional shouldIgnoreCache?: ((error) => boolean)
          • (error): boolean
          • Parameters

            • error: undefined | TResolverError

            Returns boolean

    Returns RequestSynchronizerResolver<TResolverError>

    a RequestSynchronizerResolver

Generated using TypeDoc