nx/docs/generated/devkit/CreateDependencies.md
Craigory Coppola f918a72307
feat(core): add standard way to pass plugin options (#19589)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-10-16 18:24:11 -04:00

1.7 KiB

Type alias: CreateDependencies<T>

Ƭ CreateDependencies<T>: (options: T | undefined, context: CreateDependenciesContext) => RawProjectGraphDependency[] | Promise<RawProjectGraphDependency[]>

Type parameters

Name Type
T extends Record<string, unknown> = Record<string, unknown>

Type declaration

▸ (options, context): RawProjectGraphDependency[] | Promise<RawProjectGraphDependency[]>

A function which parses files in the workspace to create dependencies in the ProjectGraph Use validateDependency to validate dependencies

Parameters
Name Type
options T | undefined
context CreateDependenciesContext
Returns

RawProjectGraphDependency[] | Promise<RawProjectGraphDependency[]>