An open API service indexing awesome lists of open source software.

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

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"

```