Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 14 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import {IObserverAdapter} from '@enbock/state-value-observer/Observer'; |
||
2 | |||
3 | export default class MenuOpenStateAdapter implements IObserverAdapter<boolean> { |
||
4 | private currentState: boolean; |
||
5 | |||
6 | constructor() { |
||
7 | 2 | this.currentState = false; |
|
8 | } |
||
9 | |||
10 | onChange(newValue: boolean): void { |
||
11 | 1 | this.currentState = newValue; |
|
12 | } |
||
13 | } |
||
14 |