Skip to content

add Base Decorators library#160

Open
LeoVS09 wants to merge 1 commit into
semlinker:masterfrom
LeoVS09:feature/vg/add-base-decorators-library
Open

add Base Decorators library#160
LeoVS09 wants to merge 1 commit into
semlinker:masterfrom
LeoVS09:feature/vg/add-base-decorators-library

Conversation

@LeoVS09

@LeoVS09 LeoVS09 commented Jun 18, 2026

Copy link
Copy Markdown

Adding Base Decorators to utilities section.

This library provides primitives that simplify decorators writing in typescript. So it can be written in few lines:

import { OnReturnHook } from 'base-decorators';

class Service {

  @OnReturnHook(({ result }) => console.log('Result is', result))
  greet(name: string) {
    return `Hello, ${name}`;
  }
}

Hope that your are interesting in sharing this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant