UNPKG

@goa/goa

Version:

The Goa Source Code For Compilation Into @Goa/Koa That Includes Modules, Tests, Types And Dependencies.

16 lines (14 loc) 269 B
import Delegates from '../index' /** * @implements {_ABC} */ class ABC { constructor() { this.response = null } } new Delegates(ABC.prototype, 'response') .getter('hello') const abc = new ABC() abc.response = { 'hello': 'world' } console.log(abc['hello'])