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
plugin-patch
PatchResolver
Globals
Generic Packages
@yarnpkg/core
@yarnpkg/fslib
@yarnpkg/libzip
@yarnpkg/nm
@yarnpkg/parsers
@yarnpkg/pnp
@yarnpkg/pnpify
@yarnpkg/sdks
@yarnpkg/shell
Yarn Packages
@yarnpkg/builder
@yarnpkg/cli
Default Plugins
@yarnpkg/plugin-compat
@yarnpkg/plugin-dlx
@yarnpkg/plugin-essentials
@yarnpkg/plugin-file
@yarnpkg/plugin-git
@yarnpkg/plugin-github
@yarnpkg/plugin-http
@yarnpkg/plugin-init
@yarnpkg/plugin-link
@yarnpkg/plugin-nm
@yarnpkg/plugin-npm
@yarnpkg/plugin-npm-cli
@yarnpkg/plugin-pack
@yarnpkg/plugin-patch
@yarnpkg/plugin-pnp
Contrib Plugins
@yarnpkg/plugin-constraints
@yarnpkg/plugin-exec
@yarnpkg/plugin-interactive-tools
@yarnpkg/plugin-stage
@yarnpkg/plugin-typescript
@yarnpkg/plugin-version
@yarnpkg/plugin-workspace-tools
Class PatchResolver
Hierarchy
PatchResolver
Implements
Resolver
Methods
bindDescriptor
getCandidates
getResolutionDependencies
getSatisfying
resolve
shouldPersistResolution
supportsDescriptor
supportsLocator
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
:
Map
<
DescriptorHash
,
Package
>
, opts
:
ResolveOptions
)
:
Promise
<
Locator
[]
>
Parameters
descriptor:
Descriptor
dependencies:
Map
<
DescriptorHash
,
Package
>
opts:
ResolveOptions
Returns
Promise
<
Locator
[]
>
get
Resolution
Dependencies
get
Resolution
Dependencies
(
descriptor
:
Descriptor
, opts
:
MinimalResolveOptions
)
:
Descriptor
[]
Parameters
descriptor:
Descriptor
opts:
MinimalResolveOptions
Returns
Descriptor
[]
get
Satisfying
get
Satisfying
(
descriptor
:
Descriptor
, references
:
Array
<
string
>
, opts
:
ResolveOptions
)
:
Promise
<
null
>
Parameters
descriptor:
Descriptor
references:
Array
<
string
>
opts:
ResolveOptions
Returns
Promise
<
null
>
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
"scripts/extract-
hooks"
acceptance-
tests
plugin-
compat
plugin-
constraints
plugin-
dlx
plugin-
essentials
plugin-
exec
plugin-
file
plugin-
git
plugin-
github
plugin-
http
plugin-
init
plugin-
interactive-
tools
plugin-
link
plugin-
nm
plugin-
npm
plugin-
npm-
cli
plugin-
pack
plugin-
patch
Patch
Resolver
bind
Descriptor
get
Candidates
get
Resolution
Dependencies
get
Satisfying
resolve
should
Persist
Resolution
supports
Descriptor
supports
Locator
plugin-
pnp
plugin-
pnpm
plugin-
stage
plugin-
typescript
plugin-
version
plugin-
workspace-
tools
vscode-
zipfs
yarnpkg-
builder
yarnpkg-
cli
yarnpkg-
core
yarnpkg-
doctor
yarnpkg-
extensions
yarnpkg-
fslib
yarnpkg-
libui
yarnpkg-
libzip
yarnpkg-
nm
yarnpkg-
parsers
yarnpkg-
pnp
yarnpkg-
pnpify
yarnpkg-
sdks
yarnpkg-
shell
Generated using
TypeDoc