> For the complete documentation index, see [llms.txt](https://zer0-2.gitbook.io/type-chef-di/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zer0-2.gitbook.io/type-chef-di/fundamentals/decorators/runafter-key-string.md).

# @RunAfter(key: string | Type\<IRunAfter>)

```typescript
 class MyRunAfter implements IRunAfter {
      constructor() { // DI will resolve dependencies (type & key injection)
    }
    
    run() {
        console.log('run this after.')
    }
}

class Test {

    @RunAfter(MyRunAfter)  // or use registerd string key
    after(p1:string, p2: string){
        console.log("original fn: ", p1, p2)
            // ...
    }
        
}
  
}
```
