mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
update js-signals:
- declare a constructor - wrap Signals object in signals namespace
This commit is contained in:
1 parent
1c829808b6
commit
897bbf6851
1 file changed
+15
Vendored
+15
@@ -3,6 +3,12 @@
|
||||
// Definitions by: Diullei Gomes <https://github.com/diullei>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare var signals: SignalWrapper;
|
||||
|
||||
interface SignalWrapper {
|
||||
Signal: Signal
|
||||
}
|
||||
|
||||
interface SignalBinding {
|
||||
active: boolean;
|
||||
context: any;
|
||||
@@ -16,6 +22,15 @@ interface SignalBinding {
|
||||
}
|
||||
|
||||
interface Signal {
|
||||
/**
|
||||
* Custom event broadcaster
|
||||
* <br />- inspired by Robert Penner's AS3 Signals.
|
||||
* @name Signal
|
||||
* @author Miller Medeiros
|
||||
* @constructor
|
||||
*/
|
||||
new();
|
||||
|
||||
/**
|
||||
* If Signal is active and should broadcast events.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user