@univerjs/core v0.5.0-beta.1 • Docs
Function: setDependencies()
function setDependencies<U>(
registerTarget,
deps,
startIndex?): void
Register dependencies on a class.
Type Parameters
Type Parameter |
---|
U |
Parameters
Parameter | Type | Description |
---|---|---|
registerTarget | Ctor <U > | The target constructor |
deps | FactoryDep <any >[] | Dependencies |
startIndex ? | number | The start index of the dependencies. Default is 0. When you want to set dependencies on a class that has custom parameters, you should set startIndex to the count of these custom parameters. |
Returns
void
Defined in
packages/api/tmp/univer-pro/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/dependencyDeclare.d.ts:10