Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lowclass version. #2

Merged
merged 5 commits into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions dist/Eventful.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Constructor } from 'lowclass';
import type { Constructor } from 'lowclass/dist/Constructor.js';
/**
* @mixin
* @class Eventful - An instance of Eventful emits events that code can
Expand Down Expand Up @@ -33,6 +33,7 @@ import type { Constructor } from 'lowclass';
*/
export declare function Eventful<T extends Constructor>(Base?: T): {
new (...a: any[]): {
"__#1@#eventMap": Map<string, Set<[Function, any]>> | null;
/**
* @method on - Register a `callback` to be executed any
* time an event with name `eventName` is triggered by an instance of
Expand Down Expand Up @@ -72,23 +73,6 @@ export declare function Eventful<T extends Constructor>(Base?: T): {
* @param {data} any - The data that is passed to each callback subscribed to the event.
*/
emit(eventName: string, data?: any): void;
"__#1@#eventMap": Map<string, Array<[Function, any]>> | null;
};
} & T;
/**
* @decorator
* @function emits - This is a decorator that when used on a property in a
* class definition, causes setting of that property to emit the specified
* event, with the event payload being the property value. This decorator must
* be used in a class that extends from Eventful, otherwise an error is thrown.
*
* @example
* class Foo {
* @emits('propchange') foo = 123
* }
* const f = new Foo
* f.on('propchange', value => console.log('value: ', value))
* f.foo = 456 // logs "value: 456"
*/
export declare function emits(eventName: string): any;
//# sourceMappingURL=Eventful.d.ts.map
2 changes: 1 addition & 1 deletion dist/Eventful.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

171 changes: 21 additions & 150 deletions dist/Eventful.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Eventful.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading