theatre/packages/dataverse/src/derivations/ConstantDerivation.ts

18 lines
294 B
TypeScript
Raw Normal View History

2021-06-18 13:05:06 +02:00
import AbstractDerivation from './AbstractDerivation'
export default class ConstantDerivation<V> extends AbstractDerivation<V> {
_v: V
constructor(v: V) {
super()
this._v = v
return this
}
_recalculate() {
return this._v
}
_reactToDependencyBecomingStale() {}
}