- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
'use strict'
const {TheCtrl} = require('the-controller-base')
const {withAuthorized} = require('the-controller-mixins')
async function tryExample () {
class MyCtrl extends withAuthorized(TheCtrl) {
/* ... */
}
}
tryExample().catch((err) => console.error(err))
В Руби, где есть include.
В жаваскрипте миксинов быть не может
но в примере то не так