API Reference
@univerjs
@univerjs/core
functions
Setdependencies

@univerjs/core v0.2.14Docs


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

submodules/univer/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/dependencyDeclare.d.ts:10


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.