Search
Preparing search index...
The search index is not available
Yarn API
Home
Configuration
Features
CLI
Advanced
GitHub
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
yarnpkg-core
MultiResolver
Globals
{"Generic Packages":{"@yarnpkg/core":"yarnpkg_core","@yarnpkg/fslib":"yarnpkg_fslib","@yarnpkg/libzip":"yarnpkg_libzip","@yarnpkg/nm":"yarnpkg_nm","@yarnpkg/parsers":"yarnpkg_parsers","@yarnpkg/pnp":"yarnpkg_pnp","@yarnpkg/pnpify":"yarnpkg_pnpify","@yarnpkg/sdks":"yarnpkg_sdks","@yarnpkg/shell":"yarnpkg_shell"},"Yarn Packages":{"@yarnpkg/builder":"yarnpkg_builder","@yarnpkg/cli":"yarnpkg_cli"},"Default Plugins":{"@yarnpkg/plugin-compat":"plugin_compat","@yarnpkg/plugin-dlx":"plugin_dlx","@yarnpkg/plugin-essentials":"plugin_essentials","@yarnpkg/plugin-file":"plugin_file","@yarnpkg/plugin-git":"plugin_git","@yarnpkg/plugin-github":"plugin_github","@yarnpkg/plugin-http":"plugin_http","@yarnpkg/plugin-init":"plugin_init","@yarnpkg/plugin-link":"plugin_link","@yarnpkg/plugin-nm":"plugin_nm","@yarnpkg/plugin-npm":"plugin_npm","@yarnpkg/plugin-npm-cli":"plugin_npm_cli","@yarnpkg/plugin-pack":"plugin_pack","@yarnpkg/plugin-patch":"plugin_patch","@yarnpkg/plugin-pnp":"plugin_pnp"},"Contrib Plugins":{"@yarnpkg/plugin-constraints":"plugin_constraints","@yarnpkg/plugin-exec":"plugin_exec","@yarnpkg/plugin-interactive-tools":"plugin_interactive_tools","@yarnpkg/plugin-stage":"plugin_stage","@yarnpkg/plugin-typescript":"plugin_typescript","@yarnpkg/plugin-version":"plugin_version","@yarnpkg/plugin-workspace-tools":"plugin_workspace_tools"}}
Class MultiResolver
Hierarchy
MultiResolver
Implements
Resolver
Constructors
constructor
Properties
resolvers
Methods
bindDescriptor
getCandidates
getResolutionDependencies
getResolverByDescriptor
getResolverByLocator
getSatisfying
resolve
shouldPersistResolution
supportsDescriptor
supportsLocator
tryResolverByDescriptor
tryResolverByLocator
Constructors
constructor
new
Multi
Resolver
(
resolvers
:
Array
<
Resolver
|
null
>
)
:
MultiResolver
Parameters
resolvers:
Array
<
Resolver
|
null
>
Returns
MultiResolver
Properties
Private
resolvers
resolvers
:
Array
<
Resolver
>
Methods
bind
Descriptor
bind
Descriptor
(
descriptor
:
Descriptor
, fromLocator
:
Locator
, opts
:
MinimalResolveOptions
)
:
Descriptor
Parameters
descriptor:
Descriptor
fromLocator:
Locator
opts:
MinimalResolveOptions
Returns
Descriptor
get
Candidates
get
Candidates
(
descriptor
:
Descriptor
, dependencies
:
Record
<
string
,
Package
>
, opts
:
ResolveOptions
)
:
Promise
<
Locator
[]
>
Parameters
descriptor:
Descriptor
dependencies:
Record
<
string
,
Package
>
opts:
ResolveOptions
Returns
Promise
<
Locator
[]
>
get
Resolution
Dependencies
get
Resolution
Dependencies
(
descriptor
:
Descriptor
, opts
:
MinimalResolveOptions
)
:
object
Parameters
descriptor:
Descriptor
opts:
MinimalResolveOptions
Returns
object
Private
get
Resolver
ByDescriptor
get
Resolver
ByDescriptor
(
descriptor
:
Descriptor
, opts
:
MinimalResolveOptions
)
:
Resolver
Parameters
descriptor:
Descriptor
opts:
MinimalResolveOptions
Returns
Resolver
Private
get
Resolver
ByLocator
get
Resolver
ByLocator
(
locator
:
Locator
, opts
:
MinimalResolveOptions
)
:
Resolver
Parameters
locator:
Locator
opts:
MinimalResolveOptions
Returns
Resolver
get
Satisfying
get
Satisfying
(
descriptor
:
Descriptor
, dependencies
:
Record
<
string
,
Package
>
, locators
:
Array
<
Locator
>
, opts
:
ResolveOptions
)
:
Promise
<
object
>
Parameters
descriptor:
Descriptor
dependencies:
Record
<
string
,
Package
>
locators:
Array
<
Locator
>
opts:
ResolveOptions
Returns
Promise
<
object
>
resolve
resolve
(
locator
:
Locator
, opts
:
ResolveOptions
)
:
Promise
<
Package
>
Parameters
locator:
Locator
opts:
ResolveOptions
Returns
Promise
<
Package
>
should
Persist
Resolution
should
Persist
Resolution
(
locator
:
Locator
, opts
:
MinimalResolveOptions
)
:
boolean
Parameters
locator:
Locator
opts:
MinimalResolveOptions
Returns
boolean
supports
Descriptor
supports
Descriptor
(
descriptor
:
Descriptor
, opts
:
MinimalResolveOptions
)
:
boolean
Parameters
descriptor:
Descriptor
opts:
MinimalResolveOptions
Returns
boolean
supports
Locator
supports
Locator
(
locator
:
Locator
, opts
:
MinimalResolveOptions
)
:
boolean
Parameters
locator:
Locator
opts:
MinimalResolveOptions
Returns
boolean
Private
try
Resolver
ByDescriptor
try
Resolver
ByDescriptor
(
descriptor
:
Descriptor
, opts
:
MinimalResolveOptions
)
:
null
|
Resolver
Parameters
descriptor:
Descriptor
opts:
MinimalResolveOptions
Returns
null
|
Resolver
Private
try
Resolver
ByLocator
try
Resolver
ByLocator
(
locator
:
Locator
, opts
:
MinimalResolveOptions
)
:
null
|
Resolver
Parameters
locator:
Locator
opts:
MinimalResolveOptions
Returns
null
|
Resolver
yarnpkg-
core
Multi
Resolver
constructor
resolvers
bind
Descriptor
get
Candidates
get
Resolution
Dependencies
get
Resolver
ByDescriptor
get
Resolver
ByLocator
get
Satisfying
resolve
should
Persist
Resolution
supports
Descriptor
supports
Locator
try
Resolver
ByDescriptor
try
Resolver
ByLocator
Generated using
TypeDoc