Set api annotation on classdesc, not constructor

This commit is contained in:
ahocevar
2018-07-21 17:25:22 +02:00
parent 2767ddfdc7
commit bbe0a66d07
101 changed files with 484 additions and 382 deletions

View File

@@ -17,6 +17,7 @@ import EventType from '../events/EventType.js';
/**
* @classdesc
* Implements a Least-Recently-Used cache where the keys do not conflict with
* Object's properties (e.g. 'hasOwnProperty' is not allowed as a key). Expiring
* items from the cache is the responsibility of the user.

View File

@@ -10,12 +10,13 @@
* @property {?} data
*/
/**
* @classdesc
* Creates an empty linked list structure.
*/
class LinkedList {
/**
* Creates an empty linked list structure.
*
* @param {boolean=} opt_circular The last item is connected to the first one,
* and the first item to the last one. Default is true.
*/

View File

@@ -12,6 +12,7 @@ export const DROP = Infinity;
/**
* @classdesc
* Priority queue.
*
* The implementation is inspired from the Closure Library's Heap class and

View File

@@ -16,13 +16,13 @@ import {isEmpty} from '../obj.js';
*/
/**
* @classdesc
* Wrapper around the RBush by Vladimir Agafonkin.
* See https://github.com/mourner/rbush.
*
* @template T
*/
class RBush {
/**
* @param {number=} opt_maxEntries Max entries.
*/