mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
The `@override` tag no longer causes all other doclet properties to be ignored. Instead, the doclet will keep its own properties and inherit any missing properties from the parent class or interface.
45 lines
838 B
JavaScript
45 lines
838 B
JavaScript
/**
|
|
* Parent interface.
|
|
* @interface
|
|
*/
|
|
function Connection() {}
|
|
|
|
/**
|
|
* Open the connection.
|
|
*/
|
|
Connection.prototype.open = function() {};
|
|
|
|
/**
|
|
* Close the connection.
|
|
*/
|
|
Connection.prototype.close = function() {};
|
|
|
|
/**
|
|
* Read the specified number of bytes from the connection.
|
|
*
|
|
* @function Connection#read
|
|
* @param {number} bytes - The number of bytes to read.
|
|
* @return {Buffer} The bytes that were read.
|
|
*/
|
|
Connection.prototype.read = function(bytes) {};
|
|
|
|
/**
|
|
* Child class.
|
|
* @class
|
|
* @implements Connection
|
|
*/
|
|
function Socket() {}
|
|
|
|
/** @override */
|
|
Socket.prototype.open = function() {};
|
|
|
|
/**
|
|
* Close the socket.
|
|
* @param {string} message - A message explaining why the socket is being closed.
|
|
* @override
|
|
*/
|
|
Socket.prototype.close = function() {};
|
|
|
|
/** @override */
|
|
Socket.prototype.read = function(bytes) {};
|