nomad

@lacrypta/nomad v0.0.0 / dependencyFrom

Function: dependencyFrom()

function dependencyFrom(func: AnyFunction, fName?: string): Dependency

Construct a new Dependency from the given Function instance.

Parameters

func: AnyFunction

Function to use for constructing the Dependency.

fName?: string

Name to use instead if given.

Returns

Dependency

The constructed Dependency.

Throws

if the given argument is not a Function.

Defined in

index.ts:41