@pnpm/types
- Version 1101.0.0
- Published
- 14.4 kB
- No dependencies
- MIT license
Install
npm i @pnpm/typesyarn add @pnpm/typespnpm add @pnpm/typesOverview
Basic types used by pnpm
Index
Variables
Interfaces
BaseManifest
- author
- bin
- bugs
- bundledDependencies
- bundleDependencies
- config
- cpu
- dependencies
- dependenciesMeta
- description
- devDependencies
- devEngines
- directories
- engines
- exports
- files
- funding
- homepage
- imports
- keywords
- libc
- license
- main
- module
- name
- optionalDependencies
- os
- peerDependencies
- peerDependenciesMeta
- publishConfig
- readme
- repository
- scripts
- type
- types
- typesVersions
- typings
- version
Type Aliases
- AllowBuild
- AllowedDeprecatedVersions
- BadPeerIssuesByPeerName
- BeforePackingHook
- BundledManifest
- ConfigDependencies
- ConfigDependencySpecifiers
- Dependencies
- DependenciesField
- DependenciesOrPeersField
- DepPath
- DevEngines
- Finder
- HoistedDependencies
- IgnoredBuilds
- IncludedDependencies
- LogBase
- MissingPeerIssuesByPeerName
- PackageBin
- PackageExtension
- PackageScripts
- PackageVersionPolicy
- ParentPackages
- PeerDependencyIssuesByProjects
- PinnedVersion
- PkgId
- PkgIdWithPatchHash
- PkgResolutionId
- ProjectId
- ProjectRootDir
- ProjectRootDirRealPath
- ProjectsGraph
- ReadPackageHook
- TokenHelper
- TrustPolicy
- VulnerabilitySeverity
Variables
variable DEPENDENCIES_FIELDS
const DEPENDENCIES_FIELDS: DependenciesField[];variable DEPENDENCIES_OR_PEER_FIELDS
const DEPENDENCIES_OR_PEER_FIELDS: DependenciesOrPeersField[];Interfaces
interface AuditConfig
interface AuditConfig {}property ignoreGhsas
ignoreGhsas?: string[];interface BadPeerDependencyIssue
interface BadPeerDependencyIssue extends MissingPeerDependencyIssue {}property foundVersion
foundVersion: string;property resolvedFrom
resolvedFrom: ParentPackages;interface BaseManifest
interface BaseManifest {}property author
author?: string;property bin
bin?: PackageBin;property bugs
bugs?: | string | { url?: string; email?: string; };property bundledDependencies
bundledDependencies?: string[] | boolean;property bundleDependencies
bundleDependencies?: string[] | boolean;property config
config?: Record<string, unknown>;property cpu
cpu?: string[];property dependencies
dependencies?: Dependencies;property dependenciesMeta
dependenciesMeta?: DependenciesMeta;property description
description?: string;property devDependencies
devDependencies?: Dependencies;property devEngines
devEngines?: DevEngines;property directories
directories?: { bin?: string;};property engines
engines?: { node?: string; npm?: string; pnpm?: string;} & Pick<DevEngines, 'runtime'>;property exports
exports?: Record<string, string>;property files
files?: string[];property funding
funding?: string;property homepage
homepage?: string;property imports
imports?: Record<string, unknown>;property keywords
keywords?: string[];property libc
libc?: string[];property license
license?: string;property main
main?: string;property module
module?: string;property name
name?: string;property optionalDependencies
optionalDependencies?: Dependencies;property os
os?: string[];property peerDependencies
peerDependencies?: Dependencies;property peerDependenciesMeta
peerDependenciesMeta?: PeerDependenciesMeta;property publishConfig
publishConfig?: PublishConfig;property readme
readme?: string;property repository
repository?: | string | { url: string; };property scripts
scripts?: PackageScripts;property type
type?: string;property types
types?: string;property typesVersions
typesVersions?: TypesVersions;property typings
typings?: string;property version
version?: string;interface BasicAuth
interface BasicAuth {}Parsed value of
_authof each registry in the rc file.
interface Creds
interface Creds {}Per-registry authentication credentials.
property authToken
authToken?: string;The value of
_authTokenof each registry in the rc file.
property basicAuth
basicAuth?: BasicAuth;Parsed value of
_authof each registry in the rc file.
property tokenHelper
tokenHelper?: TokenHelper;Parsed value of
tokenHelperof each registry in the rc file.
interface DependenciesMeta
interface DependenciesMeta {}index signature
[dependencyName: string]: { injected?: boolean; patch?: string;};interface DependencyManifest
interface DependencyManifest extends BaseManifest {}interface EngineDependency
interface EngineDependency {}interface FinderContext
interface FinderContext {}property alias
alias: string;property name
name: string;property readManifest
readManifest: () => DependencyManifest;property version
version: string;interface MissingPeerDependencyIssue
interface MissingPeerDependencyIssue {}property optional
optional: boolean;property parents
parents: ParentPackages;property wantedRange
wantedRange: string;interface PackageManifest
interface PackageManifest extends DependencyManifest {}property deprecated
deprecated?: string;interface PackageVulnerability
interface PackageVulnerability {}property severity
severity: VulnerabilitySeverity;The severity of the vulnerability
property versionRange
versionRange: string;A semver version range that indicates which versions are vulnerable
interface PackageVulnerabilityAudit
interface PackageVulnerabilityAudit {}property getVulnerabilities
getVulnerabilities: () => Map<string, PackageVulnerability[]>;Get all vulnerabilities for all packages.
Returns
A map where the keys are package names and the values are arrays of vulnerabilities for those packages.
property isVulnerable
isVulnerable: (packageName: string, version: string) => boolean;Check if the given package version is vulnerable.
interface PeerDependenciesMeta
interface PeerDependenciesMeta {}index signature
[dependencyName: string]: { optional?: boolean;};interface PeerDependencyIssues
interface PeerDependencyIssues {}property bad
bad: BadPeerIssuesByPeerName;property conflicts
conflicts: string[];property intersections
intersections: Record<string, string>;property missing
missing: MissingPeerIssuesByPeerName;interface PeerDependencyRules
interface PeerDependencyRules {}property allowAny
allowAny?: string[];property allowedVersions
allowedVersions?: Record<string, string>;property ignoreMissing
ignoreMissing?: string[];interface PnpmSettings
interface PnpmSettings {}property allowBuilds
allowBuilds?: Record<string, boolean | string>;property allowedDeprecatedVersions
allowedDeprecatedVersions?: AllowedDeprecatedVersions;property allowUnusedPatches
allowUnusedPatches?: boolean;property auditConfig
auditConfig?: AuditConfig;property configDependencies
configDependencies?: ConfigDependencies;property httpProxy
httpProxy?: string;property httpsProxy
httpsProxy?: string;property ignoredOptionalDependencies
ignoredOptionalDependencies?: string[];property nodeDownloadMirrors
nodeDownloadMirrors?: Record<string, string>;property noProxy
noProxy?: string | boolean;property npmrcAuthFile
npmrcAuthFile?: string;property overrides
overrides?: Record<string, string>;property packageExtensions
packageExtensions?: Record<string, PackageExtension>;property patchedDependencies
patchedDependencies?: Record<string, string>;property peerDependencyRules
peerDependencyRules?: PeerDependencyRules;property registries
registries?: Registries;property requiredScripts
requiredScripts?: string[];property supportedArchitectures
supportedArchitectures?: SupportedArchitectures;property updateConfig
updateConfig?: { ignoreDependencies?: string[];};interface Project
interface Project {}property manifest
manifest: ProjectManifest;property modulesDir
modulesDir?: string;property rootDir
rootDir: ProjectRootDir;property rootDirRealPath
rootDirRealPath: ProjectRootDirRealPath;property writeProjectManifest
writeProjectManifest: ( manifest: ProjectManifest, force?: boolean | undefined) => Promise<void>;interface ProjectManifest
interface ProjectManifest extends BaseManifest {}property packageManager
packageManager?: string;property private
private?: boolean;property resolutions
resolutions?: Record<string, string>;property workspaces
workspaces?: string[];interface PublishConfig
interface PublishConfig extends Record<string, unknown> {}property directory
directory?: string;property executableFiles
executableFiles?: string[];property linkDirectory
linkDirectory?: boolean;property registry
registry?: string;interface Registries
interface Registries {}property default
default: string;index signature
[scope: string]: string;interface RegistryConfig
interface RegistryConfig {}Per-registry configuration (credentials + TLS).
interface SupportedArchitectures
interface SupportedArchitectures {}interface TlsConfig
interface TlsConfig {}Per-registry TLS configuration.
interface TypesVersions
interface TypesVersions {}index signature
[version: Version]: { [pattern: Pattern]: string[];};Type Aliases
type AllowBuild
type AllowBuild = (pkgName: string, pkgVersion: string) => boolean | undefined;type AllowedDeprecatedVersions
type AllowedDeprecatedVersions = Record<string, string>;type BadPeerIssuesByPeerName
type BadPeerIssuesByPeerName = Record<string, BadPeerDependencyIssue[]>;type BeforePackingHook
type BeforePackingHook = <Pkg extends BaseManifest>( pkg: Pkg, dir: string) => Pkg | Promise<Pkg>;type BundledManifest
type BundledManifest = Pick< BaseManifest, | 'bin' | 'bundledDependencies' | 'bundleDependencies' | 'cpu' | 'dependencies' | 'devDependencies' | 'directories' | 'engines' | 'libc' | 'name' | 'optionalDependencies' | 'os' | 'peerDependencies' | 'peerDependenciesMeta' | 'scripts' | 'version'>;Subset of package.json fields cached in the store index. Used for bin linking, build scripts, runtime selection, and dependency resolution.
type ConfigDependencies
type ConfigDependencies = Record< string, | VersionWithIntegrity | { tarball?: string; integrity: VersionWithIntegrity; }>;Old format (inline integrity in pnpm-workspace.yaml): "@my-org/cfg": "1.2.0+sha512-XYZ" or { tarball: "...", integrity: "1.2.0+sha512-XYZ" }
New format (plain specifiers in pnpm-workspace.yaml, integrity in pnpm-lock.yaml): "@my-org/cfg": "^1.2.0"
type ConfigDependencySpecifiers
type ConfigDependencySpecifiers = Record<string, string>;Clean specifiers for configDependencies in pnpm-workspace.yaml (new format). Integrity info is stored in pnpm-lock.yaml instead.
type Dependencies
type Dependencies = Record<string, string>;type DependenciesField
type DependenciesField = 'optionalDependencies' | 'dependencies' | 'devDependencies';type DependenciesOrPeersField
type DependenciesOrPeersField = DependenciesField | 'peerDependencies';type DepPath
type DepPath = string & { __brand: 'DepPath';};type DevEngines
type DevEngines = Partial< Record<DevEngineKey, EngineDependency | EngineDependency[]>>;type Finder
type Finder = (ctx: FinderContext) => boolean | string;type HoistedDependencies
type HoistedDependencies = Record< DepPath | ProjectId, Record<string, 'public' | 'private'>>;type IgnoredBuilds
type IgnoredBuilds = Set<DepPath>;type IncludedDependencies
type IncludedDependencies = { [dependenciesField in DependenciesField]: boolean;};type LogBase
type LogBase = | { level: 'debug' | 'error'; } | { level: 'info' | 'warn'; prefix: string; message: string; };type MissingPeerIssuesByPeerName
type MissingPeerIssuesByPeerName = Record<string, MissingPeerDependencyIssue[]>;type PackageBin
type PackageBin = | string | { [commandName: string]: string; };type PackageExtension
type PackageExtension = Pick< BaseManifest, | 'dependencies' | 'optionalDependencies' | 'peerDependencies' | 'peerDependenciesMeta'>;type PackageScripts
type PackageScripts = { [name: string]: string;} & { prepublish?: string; prepare?: string; prepublishOnly?: string; prepack?: string; postpack?: string; publish?: string; postpublish?: string; preinstall?: string; install?: string; postinstall?: string; preuninstall?: string; uninstall?: string; postuninstall?: string; preversion?: string; version?: string; postversion?: string; pretest?: string; test?: string; posttest?: string; prestop?: string; stop?: string; poststop?: string; prestart?: string; start?: string; poststart?: string; prerestart?: string; restart?: string; postrestart?: string; preshrinkwrap?: string; shrinkwrap?: string; postshrinkwrap?: string;};type PackageVersionPolicy
type PackageVersionPolicy = (pkgName: string) => boolean | string[];type ParentPackages
type ParentPackages = Array<{ name: string; version: string;}>;type PeerDependencyIssuesByProjects
type PeerDependencyIssuesByProjects = Record<string, PeerDependencyIssues>;type PinnedVersion
type PinnedVersion = 'none' | 'patch' | 'minor' | 'major';type PkgId
type PkgId = string & { __brand: 'PkgId';};type PkgIdWithPatchHash
type PkgIdWithPatchHash = string & { __brand: 'PkgIdWithPatchHash';};type PkgResolutionId
type PkgResolutionId = string & { __brand: 'PkgResolutionId';};type ProjectId
type ProjectId = string & { __brand: 'ProjectId';};type ProjectRootDir
type ProjectRootDir = string & { __brand: 'ProjectRootDir';};type ProjectRootDirRealPath
type ProjectRootDirRealPath = string & { __brand: 'ProjectRootDirRealPath';};type ProjectsGraph
type ProjectsGraph = Record< ProjectRootDir, { dependencies: ProjectRootDir[]; package: Project; }>;type ReadPackageHook
type ReadPackageHook = <Pkg extends BaseManifest>( pkg: Pkg, dir?: string) => Pkg | Promise<Pkg>;type TokenHelper
type TokenHelper = [string, ...string[]];Parsed value of
tokenHelperof each registry in the rc file.
type TrustPolicy
type TrustPolicy = 'no-downgrade' | 'off';type VulnerabilitySeverity
type VulnerabilitySeverity = 'info' | 'low' | 'moderate' | 'high' | 'critical';Package Files (7)
Dependencies (0)
No dependencies.
Dev Dependencies (1)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@pnpm/types.
- Markdown[](https://www.jsdocs.io/package/@pnpm/types)
- HTML<a href="https://www.jsdocs.io/package/@pnpm/types"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3825 ms. - Missing or incorrect documentation? Open an issue for this package.
