Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
extend exports
Browse files Browse the repository at this point in the history
  • Loading branch information
towapenz committed Nov 17, 2023
1 parent b709ec8 commit d795cda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/attributable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ export const observeAttributable = (component: Component, metadata: object) => {
});
};

type AttributableDecoratorContext<C extends ComponentConstructor> = ClassDecoratorContext<C> & { metadata: object };
export type AttributableDecoratorContext<C extends ComponentConstructor> = ClassDecoratorContext<C> & {
metadata: object;
};

type AttributableDecorator<C extends ComponentConstructor> = {
(target: ComponentConstructor, context: AttributableDecoratorContext<C>): any;
Expand Down
4 changes: 3 additions & 1 deletion src/targetable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export const initializeTargetable = (component: Component, metadata: object) =>
}
};

type TargetableDecoratorContext<C extends ComponentConstructor> = ClassDecoratorContext<C> & { metadata: object };
export type TargetableDecoratorContext<C extends ComponentConstructor> = ClassDecoratorContext<C> & {
metadata: object;
};

type TargetableDecorator<C extends ComponentConstructor> = {
(target: ComponentConstructor, context: TargetableDecoratorContext<C>): any;
Expand Down

0 comments on commit d795cda

Please sign in to comment.