mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
55 lines
1015 B
JavaScript
55 lines
1015 B
JavaScript
/**
|
|
* Describe the Subscription class here.
|
|
*/
|
|
class Subscription {
|
|
/**
|
|
* Describe the constructor here.
|
|
*
|
|
* @param {string} name - The name of the subscription.
|
|
*/
|
|
constructor(name) {}
|
|
|
|
/** Force the subscription to expire. */
|
|
expire() {}
|
|
}
|
|
|
|
/**
|
|
* Describe the Subscriber class here.
|
|
*/
|
|
const Subscriber = class Foo {
|
|
/**
|
|
* Describe the constructor here.
|
|
*
|
|
* @param {string} name - The name of the subscriber.
|
|
*/
|
|
constructor(name) {}
|
|
|
|
/** Check whether the subscriber has a callback. */
|
|
hasCallback() {}
|
|
}
|
|
|
|
/**
|
|
* Subclass namespace.
|
|
* @namespace
|
|
*/
|
|
let subclasses = {};
|
|
|
|
/**
|
|
* Expiring subscription subclass.
|
|
* @class
|
|
*/
|
|
subclasses.ExpiringSubscription = class ExpiringSubscription {
|
|
/**
|
|
* Describe the constructor here.
|
|
*
|
|
* @param {string} name - The name of the subscription.
|
|
*/
|
|
constructor(name) {}
|
|
}
|
|
|
|
/** @memberof subclasses */
|
|
class InvalidSubscription {
|
|
/** Instance method. */
|
|
foo() {}
|
|
}
|