typescript - how to add parameter in parameter decorator? -


i have class this:

export class foocontroller{  constructor( @inject(true) private fooservice: fooservice) {     } } 

i want implement parameter decorator passing argument on it.

i had tried below approach, doesn't work, giving error "supplied parameter doesn't match signature of call target"

  public static inject(isfoo: boolean = false) {     return (target: any, key: string, index: number) => {       }   } 

please me issue


Comments

Popular posts from this blog

4x4 Matrix in Python -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -

python - PyInstaller UAC not working in onefile mode -