mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
28 lines
412 B
JavaScript
28 lines
412 B
JavaScript
|
/**
|
||
|
* Parent interface.
|
||
|
* @interface
|
||
|
*/
|
||
|
function Connection() {}
|
||
|
|
||
|
/**
|
||
|
* Open the connection.
|
||
|
*/
|
||
|
Connection.prototype.open = function() {};
|
||
|
|
||
|
/**
|
||
|
* Child interface.
|
||
|
* @interface
|
||
|
* @extends {Connection}
|
||
|
*/
|
||
|
function Socket() {}
|
||
|
|
||
|
/**
|
||
|
* Implementation of child interface.
|
||
|
* @class
|
||
|
* @implements {Socket}
|
||
|
*/
|
||
|
function EncryptedSocket() {}
|
||
|
|
||
|
/** @inheritdoc */
|
||
|
EncryptedSocket.prototype.open = function() {};
|