replace internal module to namespace

This commit is contained in:
vvakame
2016-03-17 02:18:10 +09:00
parent 2f47c75835
commit 14fe4313f4
1139 changed files with 179639 additions and 179639 deletions

14
arbiter/Arbiter.d.ts vendored
View File

@@ -5,14 +5,14 @@
// May 22 2013
declare module ArbiterDef {
declare namespace ArbiterDef {
export interface SubscribeHandler {
(data: any, message: string, subscriber_context: any): void;
}
export interface SubscribeOptions {
/**
* By default, all subscribers have a priority of 0. Higher values get higher
* By default, all subscribers have a priority of 0. Higher values get higher
* priority and are executed first. Negative values are allowed.
*/
priority?: number;
@@ -23,7 +23,7 @@ declare module ArbiterDef {
async?: boolean;
/**
* If your subscriber is not interested in any past messages that may have been
* If your subscriber is not interested in any past messages that may have been
* persisted, you can force them to be ignored.
*/
persist?: boolean;
@@ -32,19 +32,19 @@ declare module ArbiterDef {
export interface PublishOptions {
/**
* By default, subscribers can return "false" to prevent subsequent subscribers from
* receiving the message. By passing cancelable:false in the options, the publisher
* receiving the message. By passing cancelable:false in the options, the publisher
* can prevent canceling.
*/
cancelable?: boolean;
/**
* If the publishers wants subscribers to be notified even if they subscribe later,
* If the publishers wants subscribers to be notified even if they subscribe later,
* setting the persist flag will do that.
*/
persist?: boolean;
/**
* If you wish to notify the subscribers but return from the publish() call before
* If you wish to notify the subscribers but return from the publish() call before
* the subscriber functions execute, use asynchronous mode
*/
async?: boolean;
@@ -63,7 +63,7 @@ declare module ArbiterDef {
/**
* Publishes a message to all subscribers.
* Returns: true on success, false if any subscriber has thrown a js exception.
*
*
* @param msg Message may be in any format, but may not contain [ ,*]. A structure like a/b/c is recommended by convention, to allow messages to be categorized.
* @param data Pass data to subscribers that contains details about the message.
*/