Type Aliases
LoadResult
type LoadResult = objectDefined in: graph/src/transfer-data/load.ts:73
The returned object when loading a graph from a transfer data structure, including the graph itself, the spec options used to create it, and the security archive (if any).
Type declaration
graph
graph: GraphLikesecurityArchive
securityArchive: | SecurityArchive | undefined;specOptions
specOptions: SpecOptionsFilledTransferData
type TransferData = objectDefined in: graph/src/transfer-data/load.ts:83
A data structure defining a complete graph to be transfered, including extra information to the lockfile such as project info and importers.
Type declaration
importers
importers: object[];lockfile
lockfile: LockfileDataprojectInfo
projectInfo: objectprojectInfo.homedirRelativeRoot
projectInfo.homedirRelativeRoot: string;projectInfo.root
projectInfo.root: string;projectInfo.tools?
optional projectInfo.tools: string[];projectInfo.vltInstalled?
optional projectInfo.vltInstalled: boolean;securityArchive?
optional securityArchive: any;Variables
lockfile
const lockfile: objectDefined in: graph/src/browser.ts:15
Type declaration
loadEdges()
loadEdges: (graph, edges, options) => void;Parameters
graph
edges
options
Returns
void
loadNodes()
loadNodes: (graph, nodes, options, actual?) => void;Parameters
graph
nodes
Record<DepID,
LockfileNode>
options
actual?
Returns
void
longDependencyTypes
const longDependencyTypes: Set<DependencyTypeLong>Defined in: types/src/index.ts:1378
A set of the possible long dependency type names, as used in
package.json files.
transfer
const transfer: objectDefined in: graph/src/browser.ts:20
Type declaration
load()
load: transfered => LoadResultParameters
transfered
Returns
References
asDependencyTypeShort
Re-exports asDependencyTypeShort
createVirtualRoot
Re-exports createVirtualRoot
getBooleanFlagsFromNum
Re-exports getBooleanFlagsFromNum
shorten
Re-exports shorten
stringifyNode
Re-exports stringifyNode
VIRTUAL_ROOT_ID
Re-exports VIRTUAL_ROOT_ID