Skip to main content
Module

x/alosaur/src/injection/decorators/inject.ts

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
File
import { defineInjectionTokenMetadata } from "../reflection-helpers.ts";import InjectionToken from "../providers/injection-token.ts";
/** * Parameter decorator factory that allows for interface information to be stored in the constructor's metadata * * @return {Function} The parameter decorator */function inject( token: InjectionToken<any>,): (target: any, propertyKey: string | symbol, parameterIndex: number) => any { return defineInjectionTokenMetadata(token);}
export default inject;