https://github.com/charlypoly/debugging-decorators
TypeScript useful debugging decorators
https://github.com/charlypoly/debugging-decorators
debugging-tool typescript
Last synced: about 1 year ago
JSON representation
TypeScript useful debugging decorators
- Host: GitHub
- URL: https://github.com/charlypoly/debugging-decorators
- Owner: charlypoly
- License: mit
- Created: 2017-03-30T14:08:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-12T17:27:42.000Z (about 9 years ago)
- Last Synced: 2025-03-30T11:02:36.776Z (about 1 year ago)
- Topics: debugging-tool, typescript
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Typescript debugging decorators
```typescript
function logger(message: string) {
console.log(message);
}
class TestClass {
@log({ logger: logger, pattern: '{className}.{methodName}: {arguments}' })
myMethod(who: string) { }
}
(new TestClass).myMethod('Foo');
// => "TestClass.myMethod: Foo"
```