Skip to content

Commit 0b56dd6

Browse files
committed
docs(MeteorObservable): Generated new docs
1 parent 6f3b06b commit 0b56dd6

File tree

5 files changed

+126
-64
lines changed

5 files changed

+126
-64
lines changed

dist/MeteorObservable.d.ts

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
/// <reference types="meteor-typings" />
22
import { Observable } from 'rxjs';
33
/**
4-
* A class with static methods, which wraps Meteor's API and returns
5-
* RxJS Observable as return value for all Meteor's API.
6-
* The method's signature is the same as Metoer's, except you don't
7-
* need to provide callbacks, and you need to "subscribe" instead.
8-
* The functionality that wrapped in this implementation is Meteor.call,
9-
* Meteor.autorun and Meteor.subscribe.
10-
*
4+
* This is a class with static methods that wrap Meteor's API and return RxJS
5+
* Observables. The methods' signatures are the same as Meteor's, with the ]
6+
* exception that the callbacks are handled by Meteor-rxjs. Instead of
7+
* providing callbacks, you need to subscribe to the observables that are
8+
* returned. The methods that are wrapped in MeteorObservable are
9+
* [Meteor.call](https://docs.meteor.com/api/methods.html#Meteor-call),
10+
* [Meteor.autorun](https://docs.meteor.com/api/tracker.html#Tracker-autorun)
11+
* and [Meteor.subscribe](https://docs.meteor.com/api/pubsub.html#Meteor-subscribe).
1112
*/
1213
export declare class MeteorObservable {
1314
/**
14-
* Method has the same notation as Meteor.call, only without the callbacks:
15+
* Invokes a [Meteor Method](https://docs.meteor.com/api/methods.html)
16+
* defined on the server, passing any number of arguments. This method has
17+
* the same signature as
18+
* [Meteor.call](https://docs.meteor.com/api/methods.html#Meteor-call), only
19+
* without the callbacks:
1520
* MeteorObservable.call(name, [...args])
1621
*
17-
* @param {String} name - Name of the method in the Meteor server
22+
*
23+
* @param {string} name - Name of the method in the Meteor server
1824
* @param {any} args - Parameters that will be forwarded to the method.
1925
* after the func call to initiate change detection.
20-
* @returns {Observable<T>} - RxJS Observable, which completes when the server return a response.
26+
* @returns {Observable<T>} - RxJS Observable, which completes when the
27+
* server returns a response.
28+
*
2129
* @example <caption>Example using Angular2 Component</caption>
2230
* class MyComponent {
2331
* constructor() {
@@ -35,16 +43,21 @@ export declare class MeteorObservable {
3543
*/
3644
static call<T>(name: string, ...args: any[]): Observable<T>;
3745
/**
38-
* Method has the same notation as Meteor.subscribe, only without the callbacks:
46+
* When you subscribe to a collection, it tells the server to send records to
47+
* the client. This method has the same signature as
48+
* [Meteor.subscribe](https://docs.meteor.com/api/pubsub.html#Meteor-subscribe),
49+
* except without the callbacks again:
3950
* subscribe(name, [...args])
4051
*
41-
* You can use this method from any Angular2 element - such as Component, Pipe or
42-
* Service.
52+
* You can use this method from any Angular2 element - such as Component,
53+
* Pipe or Service.
4354
*
44-
* @param {String} name - Name of the publication in the Meteor server
55+
* @param {string} name - Name of the publication in the Meteor server
4556
* @param {any} args - Parameters that will be forwarded to the publication.
4657
* after the func call to initiate change detection.
47-
* @returns {Observable} - RxJS Observable, which completes when the subscription is ready.
58+
* @returns {Observable} - RxJS Observable, which completes when the
59+
* subscription is ready.
60+
*
4861
* @example <caption>Example using Angular2 Service</caption>
4962
* class MyService {
5063
* private meteorSubscription: Observable<any>;
@@ -87,7 +100,10 @@ export declare class MeteorObservable {
87100
*/
88101
static subscribe<T>(name: string, ...args: any[]): Observable<T>;
89102
/**
90-
* Method has the same notation as Meteor.autorun, only without the callback:
103+
* Allows you to run a function every time there is a change is a reactive
104+
* data sources. This method has the same signature as
105+
* [Meteor.autorun](https://docs.meteor.com/api/tracker.html#Tracker-autorun),
106+
* only without the callback:
91107
* MeteorObservable.autorun()
92108
*
93109
* @returns {Observable<T>} - RxJS Observable, which trigger the subscription callback

dist/MeteorObservable.js

Lines changed: 32 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/MeteorObservable.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundles/index.umd.js

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -474,25 +474,33 @@ function throwInvalidCallback(method) {
474474
throw new Error("Invalid " + method + " arguments:\n your last param can't be a callback function, \n please remove it and use \".subscribe\" of the Observable!");
475475
}
476476
/**
477-
* A class with static methods, which wraps Meteor's API and returns
478-
* RxJS Observable as return value for all Meteor's API.
479-
* The method's signature is the same as Metoer's, except you don't
480-
* need to provide callbacks, and you need to "subscribe" instead.
481-
* The functionality that wrapped in this implementation is Meteor.call,
482-
* Meteor.autorun and Meteor.subscribe.
483-
*
477+
* This is a class with static methods that wrap Meteor's API and return RxJS
478+
* Observables. The methods' signatures are the same as Meteor's, with the ]
479+
* exception that the callbacks are handled by Meteor-rxjs. Instead of
480+
* providing callbacks, you need to subscribe to the observables that are
481+
* returned. The methods that are wrapped in MeteorObservable are
482+
* [Meteor.call](https://docs.meteor.com/api/methods.html#Meteor-call),
483+
* [Meteor.autorun](https://docs.meteor.com/api/tracker.html#Tracker-autorun)
484+
* and [Meteor.subscribe](https://docs.meteor.com/api/pubsub.html#Meteor-subscribe).
484485
*/
485486
var MeteorObservable = (function () {
486487
function MeteorObservable() {
487488
}
488489
/**
489-
* Method has the same notation as Meteor.call, only without the callbacks:
490+
* Invokes a [Meteor Method](https://docs.meteor.com/api/methods.html)
491+
* defined on the server, passing any number of arguments. This method has
492+
* the same signature as
493+
* [Meteor.call](https://docs.meteor.com/api/methods.html#Meteor-call), only
494+
* without the callbacks:
490495
* MeteorObservable.call(name, [...args])
491496
*
492-
* @param {String} name - Name of the method in the Meteor server
497+
*
498+
* @param {string} name - Name of the method in the Meteor server
493499
* @param {any} args - Parameters that will be forwarded to the method.
494500
* after the func call to initiate change detection.
495-
* @returns {Observable<T>} - RxJS Observable, which completes when the server return a response.
501+
* @returns {Observable<T>} - RxJS Observable, which completes when the
502+
* server returns a response.
503+
*
496504
* @example <caption>Example using Angular2 Component</caption>
497505
* class MyComponent {
498506
* constructor() {
@@ -531,16 +539,21 @@ var MeteorObservable = (function () {
531539
});
532540
};
533541
/**
534-
* Method has the same notation as Meteor.subscribe, only without the callbacks:
542+
* When you subscribe to a collection, it tells the server to send records to
543+
* the client. This method has the same signature as
544+
* [Meteor.subscribe](https://docs.meteor.com/api/pubsub.html#Meteor-subscribe),
545+
* except without the callbacks again:
535546
* subscribe(name, [...args])
536547
*
537-
* You can use this method from any Angular2 element - such as Component, Pipe or
538-
* Service.
548+
* You can use this method from any Angular2 element - such as Component,
549+
* Pipe or Service.
539550
*
540-
* @param {String} name - Name of the publication in the Meteor server
551+
* @param {string} name - Name of the publication in the Meteor server
541552
* @param {any} args - Parameters that will be forwarded to the publication.
542553
* after the func call to initiate change detection.
543-
* @returns {Observable} - RxJS Observable, which completes when the subscription is ready.
554+
* @returns {Observable} - RxJS Observable, which completes when the
555+
* subscription is ready.
556+
*
544557
* @example <caption>Example using Angular2 Service</caption>
545558
* class MyService {
546559
* private meteorSubscription: Observable<any>;
@@ -620,7 +633,10 @@ var MeteorObservable = (function () {
620633
});
621634
};
622635
/**
623-
* Method has the same notation as Meteor.autorun, only without the callback:
636+
* Allows you to run a function every time there is a change is a reactive
637+
* data sources. This method has the same signature as
638+
* [Meteor.autorun](https://docs.meteor.com/api/tracker.html#Tracker-autorun),
639+
* only without the callback:
624640
* MeteorObservable.autorun()
625641
*
626642
* @returns {Observable<T>} - RxJS Observable, which trigger the subscription callback

0 commit comments

Comments
 (0)