##// END OF EJS Templates
created typings for basic part of dojo and dijit further work is required to...
created typings for basic part of dojo and dijit further work is required to complete typings and separate them from this project dojo-typings replaced with @type/dojo, @type/dijit.

File last commit:

r2:8ec37bf1b4d1 default
r2:8ec37bf1b4d1 default
Show More
connect.d.ts
48 lines | 1.7 KiB | video/mp2t | TypeScriptLexer
import { Handle } from "../interfaces";
interface Connect {
/**
* TODO: Type this better
*/
_keypress(object: any, listener: EventListener): Handle;
/**
* `dojo.connect` is a deprecated event handling and delegation method in
* Dojo. It allows one function to "listen in" on the execution of
* any other, triggering the second whenever the first is called. Many
* listeners may be attached to a function, and source functions may
* be either regular function calls or DOM events.
*/
connect(obj: any, event: string, context: any, method: EventListener | string, dontFix?: boolean): Handle;
connect(event: string, context: any, method: EventListener | string, dontFix?: boolean): Handle;
/**
* Remove a link created by dojo.connect.
*/
disconnect(handle: Handle): void;
/**
* Attach a listener to a named topic. The listener function is invoked whenever the
* named topic is published (see: dojo.publish).
* Returns a handle which is needed to unsubscribe this listener.
*/
subscribe(topic: string, context: any, method: EventListener): Handle;
/**
* Invoke all listener method subscribed to topic.
*/
publish(topic: string, args: any[]): boolean;
/**
* Ensure that every time obj.event() is called, a message is published
* on the topic. Returns a handle which can be passed to
* dojo.disconnect() to disable subsequent automatic publication on
* the topic.
*/
connectPublisher(topic: string, obj: any, method: string): Handle;
connectPublisher(topic: string, method: EventListener): Handle;
/**
* Checks an event for the copy key (meta on Mac, and ctrl anywhere else)
*/
isCopyKey(e: Event): boolean;
}