Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 968 Bytes

depsOf.md

File metadata and controls

43 lines (26 loc) · 968 Bytes

@unlib-js/depiDocs


@unlib-js/depi / dependency/depsOf

dependency/depsOf

Functions

default()

default<T>(inst): object | object

Retrieves the dependencies of the given instance.

  • Property dependencies are declared by the metadata of the class of the instance, identified by MetaKey.DependsOnProps.
  • Constructor parameter dependencies are captured and stored in the property [symbols.ctorDeps].

Type Parameters

Type Parameter Default type
T unknown

Parameters

Parameter Type Description
inst T The instance to retrieve dependencies for.

Returns

object | object

An object containing the instance's property dependencies and constructor dependencies.

Defined in

dependency/depsOf.ts:18