browser
Type Aliases
LoadResult
type LoadResult = object;Defined in: graph/src/transfer-data/load.ts:87
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
| Name | Type |
|---|---|
graph | GraphLike |
securityArchive | | SecurityArchive | undefined |
specOptions | SpecOptionsFilled |
TransferData
type TransferData = object;Defined in: graph/src/transfer-data/load.ts:97
A data structure defining a complete graph to be transfered, including extra information to the lockfile such as project info and importers.
Type declaration
| Name | Type |
|---|---|
importers | object[] |
lockfile | LockfileData |
projectInfo | object |
projectInfo.homedirRelativeRoot | string |
projectInfo.root | string |
projectInfo.tools? | string[] |
projectInfo.vltInstalled? | boolean |
securityArchive? | any |
Variables
lockfile
const lockfile: object;Defined in: graph/src/browser.ts:15
Type declaration
| Name | Type |
|---|---|
loadEdges | (graph, edges, options, cache?) => void |
loadNodes | (graph, nodes, options, actual?, throwOnMissingManifest?) => void |
longDependencyTypes
const longDependencyTypes: Set<DependencyTypeLong>;Defined in: types/src/index.ts:1521
A set of the possible long dependency type names,
as used in package.json files.
transfer
const transfer: object;Defined in: graph/src/browser.ts:20
Type declaration
| Name | Type |
|---|---|
load | (transfered) => LoadResult |
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