Skip to content

@banana-universe/bananajs


@banana-universe/bananajs / inject

Function: inject() ​

inject(token, options?): (target, propertyKey, parameterIndex) => any

Defined in: node_modules/tsyringe/dist/typings/decorators/inject.d.ts:7

Parameter decorator factory that allows for interface information to be stored in the constructor's metadata

Parameters ​

token ​

InjectionToken<any>

options? ​

isOptional? ​

boolean

Returns ​

The parameter decorator

(target, propertyKey, parameterIndex) => any