How can you access the value of a method parameter in a decorator ?
export const NullParameterCheck = (target: Object, key: string, index: number) => {
// how to get the value of the marked parameter in this case 'model'
// ... do something with that value here.
}
this is how i use it
public SetToolbar(@NullParameterCheck model: ToolbarModel): void {
}
All that i could found is how to declare a parameter decorator and log each of its parameters Thanks.