Modules | @vltpkg/types
Type Aliases
Bugs
Defined in
index.ts:76
ConditionalValue
Defined in
index.ts:42
ConditionalValueObject
Index Signature
[k
: string
]: ConditionalValue
Defined in
index.ts:38
Dist
The Manifest[‘dist’] field present in registry manifests
Type declaration
fileCount?
integrity?
shasum?
signatures?
tarball?
unpackedSize?
Defined in
index.ts:19
Exports
Defined in
index.ts:52
ExportsSubpaths
Defined in
index.ts:48
Funding
Defined in
index.ts:59
FundingEntry
Defined in
index.ts:58
Imports
Defined in
index.ts:56
Integrity
sha512 SRI string
Defined in
index.ts:13
JSONField
anything that can be encoded in JSON
Defined in
index.ts:4
KeyID
SHA256 key identifier
Defined in
index.ts:16
Manifest
Type declaration
acceptDependencies?
dependency ranges that are acceptable, but not forced
bin?
executable built and linked by this package
bugs?
where to go to file issues
bundleDependencies?
names of dependencies included in the package tarball
cpu?
supported CPU architectures this package can run on
dependencies?
production dependencies, name:specifier
deprecated?
a message indicating that this is not to be used
description?
a short description of the package
devDependencies?
development dependencies, name:specifier
dist?
Only present in Manifests served by a registry. Contains information about the artifact served for this package release.
engines?
supported run-time platforms this package can run on
exports?
named subpath exports
funding?
URLs that can be visited to fund this project
gitHead?
the HEAD of the git repo this was published from only present in published packages
gypfile?
npm puts this on published manifests
imports?
named #identifier imports
keywords?
search keywords
main?
the main module, if exports[’.’] is not set
name?
The name of the package. optional because {} is a valid package.json
optionalDependencies?
optional dependencies, name:specifier
os?
supported operating systems this package can run on
peerDependencies?
peer dependencies, name:specifier
peerDependenciesMeta?
peer dependencies marked as optional
private?
whether the package is private
repository?
where the development happens
scripts?
run-script actions for this package
type?
whether this is ESM or CommonJS by default
version?
The version of the package. optional because {} is a valid package.json
Defined in
index.ts:83
ManifestRegistry
Defined in
index.ts:148
Packument
Type declaration
dist-tags
modified?
name
readme?
time?
versions
Defined in
index.ts:151
PeerDependenciesMetaValue
An object used to mark some peerDeps as optional
Type declaration
optional?
Defined in
index.ts:32
Person
Defined in
index.ts:61
RefType
Defined in
index.ts:160
Repository
Defined in
index.ts:69
RevDoc
An object kind of resembling a packument, but about a git repo.
Type declaration
refs
all named things that can be cloned down remotely
shas
all named shas referenced above
versions
all semver-looking tags go in this record
Defined in
index.ts:180
RevDocEntry
A representation of a given remote ref in a RevDoc object.
Type declaration
rawRef
canonical full ref, like refs/tags/blahblah
ref
ref as passed git locally
sha
sha this references
type
what type of ref this is: ‘branch’, ‘tag’, etc.
Defined in
index.ts:165
Functions
asIntegrity()
Parameters
• i: unknown
Returns
`sha512-${string}`
Defined in
index.ts:193
asKeyID()
Parameters
• k: unknown
Returns
`SHA256:${string}`
Defined in
index.ts:217
asManifest()
Parameters
• m: unknown
• from?
Returns
Defined in
index.ts:302
asManifestRegistry()
Parameters
• m: unknown
• from?
Returns
Defined in
index.ts:312
asPackument()
Parameters
• p: unknown
• from?
Returns
Defined in
index.ts:348
assertIntegrity()
Parameters
• i: unknown
Returns
asserts i is `sha512-${string}`
Defined in
index.ts:207
assertKeyID()
Parameters
• k: unknown
Returns
asserts k is `SHA256:${string}`
Defined in
index.ts:231
assertManifest()
Parameters
• m: unknown
Returns
asserts m is Manifest
Defined in
index.ts:326
assertManifestRegistry()
Parameters
• m: unknown
Returns
asserts m is ManifestRegistry
Defined in
index.ts:331
assertPackument()
Parameters
• m: unknown
Returns
asserts m is Packument
Defined in
index.ts:362
isIntegrity()
Parameters
• i: unknown
Returns
i is `sha512-${string}`
Defined in
index.ts:190
isKeyID()
Parameters
• k: unknown
Returns
k is `SHA256:${string}`
Defined in
index.ts:214
isManifest()
Parameters
• m: unknown
Returns
m is Manifest
Defined in
index.ts:284
isManifestRegistry()
Parameters
• m: unknown
Returns
m is ManifestRegistry
Defined in
index.ts:297
isPackument()
Parameters
• p: unknown
Returns
p is Packument
Defined in
index.ts:337