@univerjscorefunctionsSetdependencies

@univerjs/core v0.5.4


Function: setDependencies()

function setDependencies<U>(
   registerTarget, 
   deps, 
   startIndex?): void

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/@wendellhu+redi@0.17.0/node_modules/@wendellhu/redi/esm/dependencyDeclare.d.ts:10

Register dependencies on a class.

Type Parameters

Type Parameter
U

Parameters

ParameterTypeDescription
registerTargetCtor<U>The target constructor
depsFactoryDep<any>[]Dependencies
startIndex?numberThe 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