@univerjscorefunctionsSetdependencies

@univerjs/core v0.5.0-beta.1Docs


Function: setDependencies()

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

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

Defined in

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