@unlib-js/depi • Docs
@unlib-js/depi / dependency/depsOf
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 Parameter | Default type |
---|---|
T |
unknown |
Parameter | Type | Description |
---|---|---|
inst |
T |
The instance to retrieve dependencies for. |
object
| object
An object containing the instance's property dependencies and constructor dependencies.