@aws/pdk
Version:
All documentation is located at: https://aws.github.io/aws-pdk
44 lines (33 loc) • 701 B
Markdown
# @pnpm/resolver-base
> Types for pnpm-compatible resolvers
<!--@shields('npm')-->
[](https://www.npmjs.com/package/@pnpm/resolver-base)
<!--/@-->
## Installation
```sh
pnpm add @pnpm/resolver-base
```
## Usage
Here's a template of a resolver using types from `@pnpm/resolver-base`:
```ts
import {
ResolveOptions,
ResolveResult,
WantedDependency,
} from '@pnpm/resolver-base'
export async function testResolver (
wantedDependency: WantedDependency,
opts: ResolveOptions,
): Promise<ResolveResult> {
// ...
return {
id,
resolution,
package,
latest,
normalizedPref,
}
}
```
## License
MIT