• Adds dependency information for a class.

    Parameters

    • classConstructor: Constructor<any>

      The class constructor.

    • infoOrResolver: IDependencyInformation | DependencyInfoResolver

      The dependency information or the function that resolves it.

    • Optional dependenciesOrResolver: Nilable<DependencyInfoCollectionArg>

      The custom collection for the dependency info items or the function that resolves it.

    • Optional stackInfo: Nilable<false | IStackInfo>

      Custom stack information.

    Returns void

    Example

    import {
    classDependsOn,
    getDependencies
    } from "@egomobile/documentation"

    class MyClass {
    // ...
    }

    classDependsOn(
    MyClass,
    {
    // your information here...
    }
    )

    console.log(
    getDependencies()
    )

Generated using TypeDoc